<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Green ammonia production-enabled demand flexibility in agricultural community microgrids with distributed renewables</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>09/01/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10399112</idno>
					<idno type="doi">10.1016/j.segan.2022.100736</idno>
					<title level='j'>Sustainable Energy, Grids and Networks</title>
<idno>2352-4677</idno>
<biblScope unit="volume">31</biblScope>
<biblScope unit="issue">C</biblScope>					

					<author>Lawryn Edmonds</author><author>Peter Pfromm</author><author>Vincent Amanor-Boadu</author><author>Mary Hill</author><author>Hongyu Wu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Currently, manufactured ammonia relies on natural gas or coal, which releases harmful carbon emissions. We investigate the viability of a small-scale ''green" ammonia plant where renewable electricity is used to provide hydrogen via electrolysis and nitrogen via air liquefaction to a Haber-Bosch system to synthesize ammonia. The relatively small scale, and measures such as continuous preheating, are envisioned to provide response times on the order of minutes rather than the days required by prevalent large-scale, fossil fuel-based ammonia plants. A green ammonia plant can serve as a demand-responsive load and long-term energy storage mechanism (through chemical energy storage in ammonia). We investigate its functional and economic viability within an agricultural community microgrid, which is a new contribution to this area of study. This paper proposes a coordinated operational mixed-integer linear programming (MILP) model of an electricity distribution system and an electricity-run, green ammonia plant enabled by the Haber-Bosch process. Case studies in both grid-connected and islanded modes are performed on an agricultural community microgrid based on a modified Pacific Gas & Electric (PG&E) 69-node electricity distribution system coupled with a flexible, small-scale ammonia plant and direct ammonia fuel cell. Results indicate the ammonia plant can adequately serve as a demand response resource and positively impact the distribution locational marginal price (DLMP) by reducing or removing voltage violations and line congestion in the system. Studies showed this coupling decreased electricity costs of the ammonia plant by nearly a third, with ammonia profits increasing 17%. Further, in an emergency, the direct ammonia fuel cell can provide essential power. This cooperation among the food-energy-water (FEW) network offers a unique solution to the challenge of a more efficient interconnection of renewable energy (RE) resources to the grid. Additionally, this work has the potential to reduce grid dependence on fossil fuels and aid in the decarbonization of ammonia production.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Modern power distribution systems have seen an increase in renewable energy (RE) technologies in recent years. With characteristics of variability and uncertainty, these resources pose challenges for the aging power grid that was not originally engineered to operate in this manner <ref type="bibr">[1]</ref>. Mismatched power load and generation has always been problematic. One of the significant operational challenges of RE penetration is the mismatch that occurs due to the uncertain and variable generation output from RE sources along with the increasing unpredictability of customer demands due to an increased penetration of distributed Storage options typically include traditional battery energy storage, thermal energy storage <ref type="bibr">[5]</ref>, and pumped hydro storage <ref type="bibr">[6,</ref><ref type="bibr">7]</ref>. These storage options, particularly conventional battery energy storage, face degradation of energy capacity over charging and discharging cycles, short storage times, and thermal runaway. Therefore, long-term (more than one day) energy storage solutions should be explored. Ammonia can be consumed by a direct ammonia fuel cell to provide energy to the grid in times of need, which can serve as another method to address the variability of renewable energy resources. Therefore, cooperation between electricity distribution systems and green ammonia plants offers a unique solution to grid integration of renewable resources.</p><p>We propose a framework for a rural agricultural community microgrid to alleviate the aforementioned challenges. Community microgrids benefit both the community and the grid and have characteristics of (1) spanning a large area and benefitting many customers, (2) can be owned by a utility, and (3) lowering system costs by deploying DERs at optimal locations. In contrast, traditional microgrids are owned by individual customers and typically only benefit that single customer or a few surrounding customers and do very little for the grid <ref type="bibr">[8]</ref>. The cooperation between a rural energy system and an ammonia synthesis plant reduces peak electricity loads and allows chemical energy storage in the form of ammonia to mitigate renewable generation curtailment. Utility operators can shift ammonia plant electricity demands to best serve the utility so long as the desired amount of ammonia is produced by the end of a given time frame. In return, the ammonia plant must be rewarded for providing these services to the electrical system.</p><p>Buying and selling energy at the true cost of electricity at a node is one method to accurately reward active resources in the distribution grid. A technique that achieves this is the distribution location marginal price (DLMP) mechanism, which is the marginal cost to serve the next unit of power at a node. This method is similar to the locational marginal price (LMP) mechanism used in the electric transmission market today. With characteristics of fair, transparent, and cost-causation prices, this mechanism is very desirable for future distribution markets integrating various distributed energy resources <ref type="bibr">[9]</ref>. A financial incentive for ancillary services to ease operational issues such as voltage violations and congestion on lines comes from the integration of this mechanism, as DLMPs are higher when these issues arise in the system. Ammonia is the focus of this work largely due to its importance to agriculture. Bio-available nitrogen is essential for all life and is central to the food-energy-water (FEW) nexus. Manufactured, nitrogen-rich ammonia (NH 3 ) and derivatives like urea are used to fertilize crops. The use of ammonia fertilizers is responsible for about 40% of the global food production today <ref type="bibr">[10,</ref><ref type="bibr">11]</ref>. It has been proven that ammonia used as fertilizer can substantially increase crop yields for the same input of water <ref type="bibr">[10]</ref>. Many farmers use the anhydrous ammonia produced by the plant considered in this work for crop fertilizer, and ammonia production consumes 30%-50% of the energy used for crop production <ref type="bibr">[10]</ref>. Consequently, an ammonia plant serving as a flexible demand to the distribution grid can provide a commodity that can be used locally. Further, the global transport of ammonia is well established. Existing infrastructure allows for bulk ammonia to be transported by pipeline, road, rail, and ship <ref type="bibr">[12]</ref>. Finally, the use of ammonia as an energy vector (for hydrogen) is receiving considerable attention <ref type="bibr">[13]</ref><ref type="bibr">[14]</ref><ref type="bibr">[15]</ref><ref type="bibr">[16]</ref>, suggesting the existence of a viable market for energy stored as ammonia.</p><p>Most large-scale ammonia producers do not rely on substantial amounts of electricity for ammonia synthesis today. Typically, natural gas or coal is used as the fuel and or hydrogen source for ammonia production, and NH 3 is condensed using the century-old Haber-Bosch process. This procedure is referred to as ''brown'' ammonia. However, in the procedure studied in this work, the ammonia is produced by deriving hydrogen (H 2 ) from water, through the energy-intensive water electrolysis procedure, along with sourcing nitrogen (N 2 ) through an air separation unit. The N 2 and H 2 , called syngas, are then fed into the existing Haber-Bosch catalyst to create NH 3 . If the electricity used to power this process is generated from renewable resources, the output is referred to as ''green'' ammonia. Fig. <ref type="figure">1</ref> outlines the procedure for ammonia synthesis considered in this work. This procedure decarbonizes ammonia production. Ammonia produced using fossil fuels produces an estimated 670 million metric tons of fossil carbon dioxide (CO 2 ) emissions per year <ref type="bibr">[17]</ref>. Green ammonia used as fertilizer can help lower the dependence of food on fossil fuels while aiding in the decarbonization of ammonia production.</p><p>Electricity-run green ammonia plants are not a new concept, with the first research published in this area in the 1960s. Pioneering work published in 1977 proposes the concept of storing wind energy in the form of hydrogen <ref type="bibr">[18]</ref>, but the process has only recently approached economic feasibility. With the increase in low-cost renewable energy technologies being added to the grid, electricity prices have decreased in recent years <ref type="bibr">[19]</ref>, making more environmentally friendly ammonia production feasible. Yet, the economics for synthesizing brown ammonia still slightly outperform the method proposed in this paper. With the energy demand of green ammonia and brown (natural gas) ammonia being 7.7 MWh/ton NH3 <ref type="bibr">[20]</ref> and 32.75 MBTU/ton NH3 (9.6 MWh/ton NH3 ) <ref type="bibr">[21]</ref>, and at the ten year (2010-2019) annual average cost of natural gas at $3.3021/MBTU <ref type="bibr">[22]</ref>, electricity prices will have to drop from current levels of about $0.1353/kWh in the U.S. in 2020 <ref type="bibr">[23]</ref> to below $0.014/kWh for the traditional method of synthesizing ammonia using natural gas to be less economical. The economics for green ammonia improve with penalties/taxes for releasing carbon monoxide and carbon dioxide into the atmosphere or incentives/premiums for green products. Independently, the price of electricity is expected to fall in the coming years. This price of electricity may be achievable within 10-15 years as renewable generation and battery storage increase. Less reliance on traditional power plants, which have comparatively higher operation and maintenance costs, will also contribute to a decline in the price of electricity. These trends favor lower electricity prices and greater economic competitiveness of green ammonia.</p><p>Using the true cost of electricity through the DLMP mechanism can also be beneficial to green ammonia. There may be times of very low DLMP values throughout the day, and the ammonia plant can take advantage of this by consuming electricity during these times.</p><p>Further, the start-up and shut-down of green ammonia synthesis plants involve the three main sections of the process: hydrogen production via electrolysis, nitrogen production via membrane-based or cryogenic air separation, and ammonia synthesis via the Haber-Bosch synthesis loop. The main challenge for rapid start-up is heating the Haber-Bosch reactor to around 200-300 &#8226; C. This can be avoided by preheating the reactor at all times, which requires negligible energy (relative to the total energy required to synthesize ammonia) for a reactor with sufficient heat management. Further, membrane-based nitrogen production (with subsequent polishing to remove trace oxygen) and electrolysis <ref type="bibr">[24]</ref> are comparatively flexible operations. Therefore, green ammonia plants have excellent potential to serve as demand-responsive loads to the electricity grid.</p><p>To illustrate the rapid changes taking place, consider that the energy demand of green ammonia has recently reduced from around 10.4 MWh/ton NH3 to 7.7 MWh/ton NH3 (the value used above) due to a breakthrough in the commercialization of a solid oxide electrolysis cell in the water electrolysis procedure <ref type="bibr">[20]</ref>.</p><p>In part because of the rapid changes, the energy management of green ammonia plants has not been well researched to this date, to the best of the authors' knowledge. Further, the impact of energy flexibility from green ammonia plants and direct ammonia fuel cells on the DLMP is yet to be explored.</p><p>There are many tangentially related papers within the realm of electrification of ammonia production. A recent, comprehensive review of the production, distribution, and storage of nitrogenbased alternative fuels, including green ammonia, is provided in <ref type="bibr">[25]</ref>. Further, authors in <ref type="bibr">[12,</ref><ref type="bibr">26]</ref> provide reviews of ammonia applications for power as well as the many factors that arise therefrom. This area gained significant attention in the late 2010s with substantial work that investigates electrolytic hydrogen synthesis <ref type="bibr">[27]</ref>, green ammonia synthesis/power-to-ammonia (P2A) <ref type="bibr">[28]</ref><ref type="bibr">[29]</ref><ref type="bibr">[30]</ref><ref type="bibr">[31]</ref><ref type="bibr">[32]</ref><ref type="bibr">[33]</ref>, and power-to-ammonia-to-power (P2A2P) technology <ref type="bibr">[34]</ref>. Authors in <ref type="bibr">[35]</ref> provide a process analysis of renewable-powered ammonia production, focusing on solar power. However, these works mainly focus on the feasibility of these processes rather than the coupling between the ammonia and electricity sectors.</p><p>More specifically, many distantly related papers consider the planning of these two systems. For example, an alternating direction method of multipliers algorithm is used in <ref type="bibr">[36]</ref> to solve a co-planning model to optimize wind generation and ammonia plant(s) siting and configuration as well as electricity transmission system expansion with respect to total investment and operational costs. While this work considers power balance constraints and direct current (DC) power flow modeling, real-time or day-ahead scheduling of the two systems is beyond the scope of this work. Additionally, authors in <ref type="bibr">[37]</ref> consider joint planning of hydrogen production and electrical systems to enable high levels of variable renewable energy resources and energy system decarbonization. This work also analyzes the marginal cost of electricity under different hydrogen demand scenarios.</p><p>Further, under a similar concept to the research proposed in this paper, our previous work <ref type="bibr">[38]</ref> considers flexibility and energy storage in drinking water pumps and elevated water tanks, respectively, when optimizing a day-ahead schedule in a distribution system. Authors in <ref type="bibr">[39]</ref> consider flexibility within an integrated natural gas and electricity transmission system, including hydrogen production via electrolysis and steam methane reforming. A day-ahead scheduling model considering transmission grid and gas network constraints is provided. Authors in <ref type="bibr">[40]</ref> consider hydrogen (from electrolysis) production flexibility in transmission grids with variable renewable energy sources and consider DC power flow and balance constraints. Additionally, <ref type="bibr">[41,</ref><ref type="bibr">42]</ref> consider electrolytic hydrogen synthesis while considering transmission grid constraints, while <ref type="bibr">[42]</ref> considers locational electricity pricing. It is important to consider this transmission-level interaction, but the models cited above do not focus on distribution systems, especially future distribution systems with diverse distributed energy resources.</p><p>Complementary to this research, authors in <ref type="bibr">[43]</ref> propose a multi-energy (electrical, ammonia, and thermal energy carriers) thermo-electrochemical model with thermal and power balancing constraints. Still, physical grid constraints were not considered. The proposed methodology was tested on a laboratory-level, small-scale microgrid. A comparison of various storage techniques, including P2A, traditional battery storage, and powerto-gas (P2G) applications, such as rapid response electrolysis for methane (CH 4 ) and hydrogen (H 2 ) is described. Authors in <ref type="bibr">[44]</ref> evaluate the thermodynamic performance and energy efficiency of solar-powered intermittency mitigation by way of clean ammonia synthesis and direct ammonia fuel cells. The formulation developed in <ref type="bibr">[45]</ref> is used to optimally schedule wind-powered ammonia generation with respect to least-cost annual operations. Authors in <ref type="bibr">[46]</ref> provide a combined capacity planning and scheduling of green ammonia production. Though the aforementioned works consider ammonia as a storage medium for excess renewable generation and power balance constraints, they do not consider physical grid constraints. Therefore, the impact of this procedure on the grid and the DLMP appears to be a fruitful area of inquiry.</p><p>The novelty of the work presented here resides in the quantitative consideration of a combined electricity distribution system and ammonia production plant with constraints in a day-ahead or real-time scheduling problem. The impact of the coordination of the ammonia plant on the DLMP will be explored to discover the optimal operation of an electricity distribution system and an ammonia plant.</p><p>For the first time, we investigate the viability of a green ammonia production plant to serve as a demand-responsive load to the electric power system and test this concept on a realistic electricity distribution system. To achieve this, we propose a mixed-integer linear programming (MILP) model of a merged power system and ammonia plant to optimally schedule DERs, electricity loads, and ammonia production, which is the first model of this kind. Here, the flexible electricity demand from the ammonia production is coupled with the total electricity demand. Power-to-ammonia-to-power applications are also considered using a direct ammonia fuel cell to provide power to the electricity grid. When the demand is greater than the generation in the power system or when the price of producing electricity is high, the ammonia plant responds to this price by reducing its electricity load to aid in the power balancing of the electric grid. When there is excess RE generation in the local system, the plant produces and stores more ammonia. The excess ammonia is stored in tanks and sold into the ammonia market or even fed back into the power system through direct ammonia fuel cells. This P2A2P process using a fuel cell has a round-trip efficiency of around 30% <ref type="bibr">[47]</ref>. This procedure is only favorable in islanded or emergency situations due to the costliness of consuming ammonia which could otherwise sell for higher profits in the bulk ammonia market. Further, the present-day power output of commercial fuel cells is still relatively small, typically in kilowatts.</p><p>The coupling proposed in this paper can reduce electricity costs and renewable energy curtailment. When there is insufficient ramping down capability in thermal units or power line congestion, RE curtailment typically occurs, reducing the utilization of available wind and PV energy <ref type="bibr">[48]</ref>. The proposed electricity model does not consist of thermal units with ramping constraints; therefore, RE curtailment is caused by congested lines and voltage violations. This model is optimized from the perspective of the distribution system operator (DSO) and considers physical constraints of both the ammonia plant and the electricity distribution system. The electricity costs of powering the green ammonia plant determine a significant portion of the operational costs and control the economics to make this process competitive with brown ammonia plants. Therefore, ammonia plant operational costs are reduced when the cost of supplying electricity is minimized.</p><p>A community microgrid based on a modified Pacific Gas &amp; Electric (PG&amp;E) 69-node electricity distribution system is coupled with a demand-responsive ammonia plant is used to perform case studies. Under the future case of a distribution market (as described in <ref type="bibr">[49]</ref>), the capability of anhydrous ammonia to serve as a storage medium of excess renewable energy is examined. Supplying energy using marginal operating costs is a central focus of future distribution markets. Thus, the impact on the DLMP from the cooperation of the green ammonia plant is studied. The contributions of this work are as follows:</p><p>(1) A novel MILP model for coordinated operation of an electricity distribution system and ammonia plant while considering DLMP in the model is proposed. Constraints for a small-scale, green ammonia plant are modeled for the first time in this work. (2) For the first time, the effect of the ammonia plant and electrical system coordination in a future distribution market considering a high penetration of renewable energy and DLMPs is shown. The capability of the ammonia plant in reducing line congestion and voltage violations in the electricity distribution system is examined. (3) To investigate the resiliency of an agricultural community microgrid, an emergency case is considered. We examine a case where wind turbines are shut down for safety purposes, and only critical loads are met. The impact of a direct ammonia fuel cell serving the community in times of need is explored.</p><p>The remainder of this paper is organized as follows. We outline the mathematical model for the electricity distribution system and ammonia plant and fuel cell in Sections 2 and 3, respectively. Case studies utilizing anhydrous ammonia as a storage medium for excess RE and its impact on the DLMP are provided in Section 4. We provide important observations and conclude the work in Section 5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Electricity distribution model</head><p>An unbalanced three-phase electricity distribution system or agricultural community microgrid is considered. Modified Dist-Flow equations with losses are used. This model is adapted from our previous work in <ref type="bibr">[50]</ref>. We index the substation node or the point of common coupling (PCC) as 0 and order the rest of the nodes from 1 to N , where N is the total number of nodes/lines. As shown in Fig. <ref type="figure">2</ref>, line i is the line connecting the upstream node, u(i), and the set of downstream nodes, d{i}, to node i. All variables related to line i are subscripted by index i &#8712; N , for phase &#966; &#8712; &#934;, and time t &#8712; T .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Objective function</head><p>The objective function, defined in (1), is the least cost sum of operating the electrical distribution system and is captured in</p><p>The real and reactive LMP prices at the substation node connected to the transmission system are represented by &#955; p 0 t and &#955; q 0 t , and the real and reactive net power injections at the substation node are p 0,&#966;,t and q 0,&#966;,t , which is assumed to be an infinite source. Negative net power injections indicate the DSO is buying real or reactive power from the distribution system at the LMP of the substation node. Distributed generators (DGs) bid at c G,P i,&#966;,t for real power and c G,Q i,&#966;,t for reactive power. Here, the marginal cost of the generator is used as the bid of the DG. The real and reactive power supplied by the generators are indicated by p G i,&#966;,t and q G i,&#966;,t . The reactive power output of the DG must lie within a fraction, &#954; G , of the real power output. The RE resources bid at $0/MWh and are therefore not present in the objective function.</p><p>Similarly, under the assumption these assets are owned by the DSO, the battery energy storage system (BESS) units and the direct ammonia fuel cell do not bid into the market. Instead, these resources operate to best serve the needs of the system. The final term in (1) penalizes RE curtailment (s R i,&#966;,t ) at a value of &#958; R . This is to discourage inefficient utilization of the RE resources in the system. Note the RE generation is curtailed equally across all phases.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Power balance</head><p>Constrains ( <ref type="formula">2</ref>)-( <ref type="formula">3</ref>) model the total system real and reactive power balance. Here L P i,&#966;,t and L Q i,&#966;,t are the linearized real and reactive power losses. The real and reactive power net node injection (p i,&#966;,t , q i,&#966;,t ) are modeled in (4)- <ref type="bibr">(5)</ref>. Variables p D i,&#966;,t and q D i,&#966;,t are the real and reactive system power demands and p R i,&#966;,t and q R i,&#966;,t are the real and reactive RE unit outputs. Real and reactive BESS outputs are represented by p B i,&#966;,t and q B i,&#966;,t , and the real and reactive direct ammonia fuel cell outputs are represented by p FC i,&#966;,t and q FC i,&#966;,t . Reactive fuel cell generation is restricted to &#954; FC of the dispatched real fuel cell generation.</p><p>The net real power extraction of the BESS (p B i,&#966;,t ), defined in <ref type="bibr">(6)</ref>, is the difference between the extraction (p B i,&#966;,t ) and injection (p B i,&#966;,t ) power. The reactive power of the battery, q B i,&#966;,t , must lie within zero and &#954; B of the real power BESS extraction. Constraints defining the state of charge, dis/charging rates, and the minimum number of dis/charging hours of the BESS can be found in our previous work <ref type="bibr">[51]</ref>.</p><p>Eq. ( <ref type="formula">7</ref>) determines the dispatched real RE generation, p R i,&#966;,t , from the expected generation, p R i,&#966;,t . Penalized in the objective function, the difference is captured in s R i,&#966;,t . The positive curtailment is limited to a value less than the expected generation <ref type="bibr">(8)</ref>.</p><p>Reactive RE generation is held within &#954; R of the dispatched real RE generation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">Distribution power flow</head><p>Defined in ( <ref type="formula">9</ref>) and <ref type="bibr">(10)</ref>, the real and reactive power flows are represented by variables P i,&#966;,t and Q i,&#966;,t . Nodal voltage, v i,&#966;,t , is defined in <ref type="bibr">(11)</ref> in reference to the substation voltage, v 0,&#966;,t . System parameters M P i,&#966;,j and M Q i,&#966;,j are comprised of upstream and downstream incidence matrices and line resistance and reactance diagonal matrices <ref type="bibr">[52]</ref>. Originally quadratic relations of the real and reactive power flow, line impedance, and nodal voltage, real and reactive power losses (L P i,&#966;,t , L Q i,&#966;,t ) are approximated using a first-order Taylor series approximation around an exogenously obtained feasible point <ref type="bibr">[53]</ref>. Specifics on the approximated loss is presented in our previous work <ref type="bibr">[52]</ref>. Voltage and line limit bounds are enforced by constraints ( <ref type="formula">12</ref>) and ( <ref type="formula">13</ref>), respectively.</p><p>Here, &#1013; is a small value, normally 5%, and S i,&#966; is the maximum MVA line limit. The initially convex quadratic apparent power</p><p>, is linearly approximated in <ref type="bibr">(13)</ref>. Obtained from Convex Optimization of Power Systems <ref type="bibr">[54]</ref>, this equation models the outer approximation of the system power flow. The real and reactive power imbalance between phases at the substation node are restricted by ( <ref type="formula">14</ref>) and <ref type="bibr">(15)</ref> within a small percentage, &#8710;&#966; p and &#8710;&#966; q , respectively.</p><p>|p i,&#966;,t -p i,&#966; &#8242; ,t | = &#8710;&#966; p &#8704;&#966; &#8712; &#934;, &#8704;&#966; &#8242; &#8712; {&#934;\&#966;} <ref type="bibr">(14)</ref> |q i,&#966;,t -q i,&#966; &#8242; ,t | = &#8710;&#966; q &#8704;&#966; &#8712; &#934;, &#8704;&#966; &#8242; &#8712; {&#934;\&#966;} <ref type="bibr">(15)</ref> An unbalanced, three-phase, real and reactive distribution system optimization model is represented in (1)-( <ref type="formula">13</ref>) and accounts for DGs, RE units, BESSs, fuel cells, and green ammonia plant loads. Validated in our previous work using commercially available electricity model software (MATPOWER), the accuracy of the electricity distribution model measurements can be verified in Ref. <ref type="bibr">[52]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.">DLMP decomposition</head><p>Our linearized DLMP model, decomposed in Ref. <ref type="bibr">[52]</ref>, is leveraged here and extended to include the flexible demand of the green ammonia plant. The DLMP components remain the same for this case as the ammonia plant demand and fuel cell generation are not directly related to a marginal increase in electricity demand. Shown in ( <ref type="formula">16</ref>)-( <ref type="formula">17</ref>), energy, loss, voltage violation, and congestion components are summed to the total real and reactive DLMP (&#8486; P i,&#966;,t , &#8486; Q i,&#966;,t ).</p><p>&#8486;</p><p>&#8486;</p><p>&#8486;</p><p>&#8486;</p><p>The real and reactive energy components of the DLMP (&#8486;</p><p>) are determined by the shadow prices of ( <ref type="formula">2</ref>) and (3). If the substation node is providing the next marginal unit of power, these values are equal to the LMP (&#955; p 0 t , &#955; q 0 t ) at the substation node. Real and reactive loss components (&#8486;</p><p>) are determined by loss sensitivities with respect to nodal power injections. Similarly, voltage components (&#8486;</p><p>) are determined by voltage sensitivities to nodal power injections. The shadow prices of ( <ref type="formula">12</ref>) on all nodes i &#8242; that meet a lower or upper voltage limit are captured in v min i &#8242; ,&#966;,t and v max i &#8242; ,&#966;,t . Finally, congestion components (&#8486;</p><p>) are determined by lines' apparent power flow sensitivities with respect to nodal power injections. The combinations of the four Lagrange multipliers that come from expanding the absolute values in <ref type="bibr">(13)</ref> to a linear form are captured in &#961; 1 i,&#966;,t and &#961; 2 i,&#966;,t . The combination of real and reactive power injections is captured in S j,&#966;,t <ref type="bibr">[52]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Ammonia plant and fuel cell model</head><p>Similar to the electrical system, indices i &#8712; N , &#966; &#8712; &#934;, t &#8712; T are used. Here, i is the node where the ammonia plant and fuel cell connect to the electricity distribution system. We consider a balanced, three-phase, real and reactive load for the green ammonia plant. Through the use of advanced power electronics, the direct ammonia fuel cell is capable of providing real and reactive power to the system <ref type="bibr">[55,</ref><ref type="bibr">56]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Ammonia plant model</head><p>The electricity demand and production tracking of an ammonia plant are modeled by constraints ( <ref type="formula">24</ref>)- <ref type="bibr">(39)</ref>. The electrical load for ammonia (p D,A i,&#966;,t ) is comprised of hydrogen production from water electrolysis, nitrogen production from air separation, and ammonia condensation through the Haber-Bosch process. The chemical formula for ammonia production using this pro-</p><p>Hydrogen production requires, by far, the largest amount of energy to run. Assumed at a consumption of 41.79 MWh/ton NH3 of H 2 , this process requires 17.6% of the tons of ammonia produced in H 2 <ref type="bibr">[17]</ref>. The nitrogen production assumes a rate of 0.243 MWh/ton NH3 of N 2 while requiring 82.4% of the tons of ammonia produced in N 2 <ref type="bibr">[17]</ref>. The Haber-Bosch process requires 0.144 MWh/ton NH3 of energy to operate. In total, and as defined in <ref type="bibr">(24)</ref>, the energy demand per metric ton (MWh/ton NH3 ) rate (p D,AR ) for this process is 7.7 MWh/ton NH3 <ref type="bibr">[20]</ref>.</p><p>The power demand of the ammonia plant depends on the operational mode of the plant and is captured in <ref type="bibr">(24)</ref>. We consider the load equivalent across all three phases of the distribution feeder; therefore, the total power demand is divided by three and equally assigned to each phase. To ensure the ammonia produced is categorized as ''green'' ammonia, the total demand must be less than the total renewable power in the system at a given time, &#8721; i,&#966; p R i,&#966;,t , as in <ref type="bibr">(25)</ref>. Binary indicators I A i,&#966;,t and I P i,&#966;,t allow for 'on', 'off', and 'warming' modes. If the plant is 'on' (I A i,&#966;,t = 1) and producing ammonia (I P i,&#966;,t = 1), the power demand is a linear relationship between the production rate and the amount of ammonia produced in metric tons in that timeslot, A P i,t . To reduce the energy consumption when the price of electricity is high, a 'warming' mode is considered. The Haber-Bosch reactor can be warmed at a significantly lower power demand than when producing ammonia due to the high energy demand of water electrolysis. Considering maintaining British thermal units, a warming model allows for the minimization of shut-down and start-up operations. If the plant is 'on' (I A i,&#966;,t = 1), but not producing ammonia (I P i,&#966;,t = 0), it is in the 'warming' mode and the power demand is a constant based on the energy necessary for warming the reactor, p D,W . Finally, if the plant is 'off' (I A i,&#966;,t = 0), which is a rare case but is included in this model for completeness, there is no power demand. Note, the plant is not allowed to be 'off' (I A i,&#966;,t = 0) and producing ammonia (I P i,&#966;,t = 1) at the same time, as enforced in <ref type="bibr">(26)</ref>. Note, the power demand for the 'off' mode is also reflected in (24) when I A i,&#966;,t and I P i,&#966;,t both equal '0' and there is no ammonia produced when I A i,&#966;,t is '0', as enforced in <ref type="bibr">(27)</ref>.</p><p>We consider the ammonia plant a demand response system that produces A P i,t tons of ammonia in an hour. The amount of ammonia produced in a timeslot must fall between the minimum (A P ) and maximum (A P ) amount of ammonia capable of being produced in that time frame <ref type="bibr">(27)</ref>. Note, if the plant is not producing ammonia, the amount produced in that timeslot is zero. At the end of the time frame (T ), the summed amount of ammonia produced in a timeslot (A P i,t ) and the ammonia consumed by the fuel cell (A FC i,&#966;,t ), must sum to at least A S i metric tons per day (TPD), as determined by the ammonia plant owner <ref type="bibr">(28)</ref>. In the case of excess renewables and thus low-cost electricity, the ammonia plant can produce more ammonia to best benefit the utility in reducing voltage violations and line congestion. The excess renewable energy is stored in ammonia. It can then be used as fertilizer on-site, sold into the ammonia market, or consumed to produce electricity using a fuel cell.</p><p>The feedstock of ammonia (A S i,t ), and the reduction due to its use by the fuel cell, is tracked as in <ref type="bibr">(29)</ref>, and must not exceed the maximum amount of ammonia capable of being stored on-site, A S i . In the first timeslot, A S i,t-1 is the initial value of the feedstock of ammonia and is available for fuel cell use at the beginning of the day.</p><p>A P</p><p>For best performance, we consider the ammonia plant to remain 'on' for a minimum of UT i number of hours and 'off' for a maximum of DT i hours. Eqs. ( <ref type="formula">30</ref>) and ( <ref type="formula">33</ref>) ensure the 'on' (T on i,&#966;,t ) and 'off' (T off i,&#966;,t ) time counters are positive and do not exceed the scheduling horizon limit (T ). Eqs. ( <ref type="formula">31</ref>) and ( <ref type="formula">34</ref>) increase the respective counter by one if the unit remains 'on' or 'off'. The minimum number of consecutive hours 'on' and the maximum number of consecutive hours 'off' are constrained by <ref type="bibr">(32)</ref> and <ref type="bibr">(35)</ref> with the use of binary 'on' and 'off' indicators, I on i,&#966;,t and I off i,&#966;,t , which are '1' in the timeslot the plant turns 'on' or 'off', and '0' otherwise. These indicators must not both be activated in the same timeslot <ref type="bibr">(36)</ref>. If there is a change in the plant's 'on'/'off' status within two timeslots the respective indicator will capture this change <ref type="bibr">(37)</ref>.</p><p>(T + 1)</p><p>1</p><p>The ammonia plant can be turned 'on' and 'off' at a rapid rate, on the order of minutes. Therefore, within an hour timeslot, the on and off time lags can be ignored in the model. Further, the ammonia plant is not able to instantaneously change its power consumption, but rather ramps up at RU i MW/h <ref type="bibr">(38)</ref> and ramps down at RD i MW/h <ref type="bibr">(39)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Fuel cell model</head><p>The power produced by the fuel cell (p FC i,&#966;,t ) is determined by the linear relationship between the amount of ammonia consumed by the fuel cell and the conversion rate, p FC ,R , as modeled in <ref type="bibr">(40)</ref>. The fuel cell is 'on' when the ammonia consumed by the fuel cell (A FC i,&#966;,t ) is between the minimum (A FC i,&#966;,t ) and maximum (A FC i,&#966;,t ) consumption rate of the fuel cell in tons, and is indicated by binary variable I FC i,&#966;,t <ref type="bibr">(41)</ref>. The ammonia used by the fuel cell must be less than the amount of the on-site ammonia feedstock in the previous timeslot and the ammonia produced in that timeslot <ref type="bibr">(42)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Coupled system model</head><p>The coupled electricity and ammonia plant model is captured in the optimization problem P 1 . In this model, we consider the ammonia plant as a demand response system. The ammonia production is not optimized for the most profit, but all constraints, including the minimum required metric tons per day, must be met. Here, p D i,&#966;,t in ( <ref type="formula">4</ref>) is a summation of the non-ammonia electrical demand and the optimized ammonia demand, p D,A i,&#966;,t , associated with its respective node i. A similar coupling can be made for reactive power demand. The fuel cell real and reactive generation is included in the nodal power balance constraints (4) and <ref type="bibr">(5)</ref>. We define the coupled optimal power flow and ammonia production problem, P 1 , as:</p><p>subject to: (2)-( <ref type="formula">15</ref>), ( <ref type="formula">24</ref>)-( <ref type="formula">42</ref>)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Case study</head><p>We consider a modified, unbalanced three-phase agricultural community microgrid based on the PG&amp;E 69-node distribution system connected to a small-scale, electricity-run ammonia plant to validate our proposed model and investigate its impact on the DLMP. Fig. <ref type="figure">3</ref> shows a oneline diagram of the system. We consider a high renewable case with renewable generation units at <ref type="bibr">Nodes 21,</ref><ref type="bibr">22,</ref><ref type="bibr">42,</ref><ref type="bibr">44,</ref><ref type="bibr">48,</ref><ref type="bibr">49</ref>, and 61, with a maximum availability of 12.72 MW per phase. Three single-phase 0.5 MWh BESS units are on each phase at Node 2. The BESS was sized to aid in balancing the system. The unbalanced system, which follows a typical summer day load curve, sees a (non-ammonia) three-phase peak load of 14.55 MW. This is representative of a distribution feeder, which typically range from 0.6 to 28.5 MW per phase <ref type="bibr">[57]</ref>. Further, a typical summer day is used, which exhibits the peak electrical load.</p><p>The balanced, three-phase energy demands of the green ammonia plant are included in the electrical demand for Node 7, and the fuel cell can independently provide power to each phase at Node 7. The substation LMP ranges from $16.56/MWh to $42.14/MWh, modeled after a typical summer day. A balanced, three-phase, 4.5 MW distributed generator is located at Node 62. This DG bids into the market at a cost higher than the LMP, $61.69/MWh per phase, under the assumption that the marginal cost of a DG is more expensive than buying power from the grid. The historical data of Western Wind and Solar Integration Study <ref type="bibr">[58]</ref> is modified and used for hourly samples of wind and PV generation.</p><p>The green ammonia plant, at minimum, must produce a desired 5 TPD of ammonia. Table <ref type="table">1</ref> shows the green ammonia plant parameters considered in this study. The fuel cell is modeled after a futuristic, scaled-up direct ammonia fuel cell currently in the commercial market, the Gencell A5 fuel cell <ref type="bibr">[59]</ref>. GAMS/CPLEX 28.1.0 <ref type="bibr">[60]</ref> was used to solve the proposed MILP, P 1 . We define the following cases: Case 1 -Decoupled Electricity and Ammonia Models: The ammonia plant operates without consideration of the grid conditions. The ammonia demand is fixed and must be met in the electricity model. The output of ammonia is exactly A S i tons. The electrical system is grid-connected and can buy and sell energy at the LMP of the substation node.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Case 2 -Coupled Electricity and Ammonia Model:</head><p>The electric utility operates the ammonia plant, which acts as a demand-responsive system to best serve the electricity grid. The output of ammonia must be at least A S i tons but may exceed this value. The electrical system is grid-connected.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Case 3 -Coupled Islanded Mode:</head><p>The agricultural microgrid is islanded. Buying and selling energy from the grid at the substation node is not allowed. The system must meet all Fig. <ref type="figure">4</ref>. Node 7 three-phase, component-wise DLMP comparison of decoupled and coupled models for the electricity distribution system and green ammonia plant (Cases 1 and 2). The flexible, green ammonia plant operates to ease operational burdens (voltage violation, line congestion) in the electric grid in the coupled case, improving the DLMP.</p><p>demands with the available DERs. The output of ammonia must be at least A S i tons but may exceed this value. Case 4 -Coupled Islanded Mode with Fuel Cell: In this islanded agricultural microgrid, buying and selling energy from the substation node is not allowed. This case is an emergency situation where, perhaps, a natural disaster (e.g., hurricane) destroyed essential transmission lines that fed power to this system. Some of the distributed wind turbines must be shut down due to high wind speeds. The need for power outweighs the high cost of electricity. Therefore, the electric utility operates the typically high-cost fuel cell to best serve the islanded agricultural microgrid. The fuel cell operation has a cost associated with it, but at a relatively lower rate than the DG to discourage overuse of the fuel cell but allowing for liberal operation. The fuel used by the DG may have other uses during an emergency, so the cost associated with DG operation is higher than the fuel cell. In contrast, ammonia does not have other uses in a crisis.</p><p>The power demand is 30% of the normal demand. Wind speeds in the area are considered too high, and the wind turbines at buses 21, 22, 42, and 44 are shut down for safety purposes. Furthermore, a cloudy day is considered; therefore, the PV output is reduced and does not follow the typical sunny day curve. The desired TPD limit and 'on'/'off' constraints of the ammonia plant are relaxed in this emergency case. The initial stock of on-site ammonia for use by the fuel cell is 40 tons.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Impact on DLMP</head><p>The coupling of the green ammonia plant and the electrical system has a distinct impact on the three-phase DLMP, as shown in Fig. <ref type="figure">4</ref>. Decoupled Case 1 considers the ammonia plant running at a constant load to produce the desired 5 tons by the end of the day. Case 1 sees many voltage violations and line congestion occurrences throughout the day, as shown with voltage and congestion DLMP components in Fig. <ref type="figure">4</ref>(a), which are scaleddown to better understand the visualization. Further, power loss is unavoidable. Therefore, the system has loss DLMP components at every timeslot, though not all are visible due to their small size. Negative DLMP components indicate that the system would pay for extra load consumption to relieve operational issues. For example, many timeslots see negative voltage DLMP components due to the maximum voltage limit being met. The system would therefore benefit from more energy demand at that node to reduce the nodal voltage.</p><p>The decoupled green ammonia plant is unable to respond to the needs of the electrical system that are reflected in the DLMPs. Therefore, we consider a coupled green ammonia plant and electrical system in Case 2. The ammonia plant can serve as a demand-responsive load to the electricity distribution system and therefore improve the DLMP of the system by reducing voltage violations, line congestion, and RE curtailment to the best of the plant's ability. As shown in Fig. <ref type="figure">4</ref>(b), the ammonia plant demand is higher when the DLMP is lower (indicating fewer issues in the electrical system) and lower when the DLMP is high. For example, the ammonia plant is in the 'warming' or 'off' state for Timeslots 12-18 in Case 2 due to the high DLMPs at this time.</p><p>Further, the coupled system completely removed the large, negative congestion DLMP components on Phase B in Timeslots 9 and 10 in the decoupled case. The ammonia plant consumes a balanced three-phase power, which must be considered when serving the electrical system. For example, Timeslot 4 sees congestion in the system on Phase A but a negative voltage component on Phase B. Considering the overall DLMP and all other constraints, the ammonia plant best serves the system by operating during this timeslot.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Impact of demand-responsive Green ammonia plant</head><p>In addition to the improvements on the DLMP mentioned previously, the coupled green ammonia plant also reduced the amount of RE curtailed in the system, as shown in Fig. <ref type="figure">5</ref>. In all timeslots, the RE curtailment is lower in the coupled case. In Timeslots 8 and 20, the coupled system is able to completely remove the RE curtailment in the system by allowing the green ammonia plant to consume excess RE generation. The decoupled case requires a constant demand and increases the base, nonammonia plant demand equally throughout the day. The coupled system increases the total demand in the system by storing excess RE in ammonia. In some timeslots, the renewable energy is completely utilized by the base demand. For example, the ammonia plant is 'warming' in Timeslots 12-16 and 'off' in Timeslots 17-18 to not increase the load further and require more expensive energy from the substation node or the distributed generator as the total energy cost is minimized in the objective function. The green ammonia plant operates in a manner that attempts to level out the demand throughout the day.</p><p>Notice in most timeslots, the RE is still curtailed even in the coupled case. Nodal voltage limits being met and or congested lines in the system cause the RE curtailment, which is graphically depicted in Fig. <ref type="figure">4(b)</ref>. This curtailment indicates the importance of smart DER planning and grid upgrades to handle large amounts of distributed renewable energy resources expected in future distribution systems. Further, in both cases, the renewable energy is sold to the substation node at LMP until a constraint is met and it can no longer sell the excess energy. The flexible demand from the ammonia plant allows some of the curtailed RE in the previous case to be consumed by the ammonia plant. Due to the incentive in the objective function for selling excess energy, the system will attempt this option first and then store excess RE as ammonia. Therefore, we next consider an islanded system to compare the impact of the green ammonia plant on the system when there is no option to sell excess renewable energy to the larger grid.</p><p>The comparison between coupled grid-connected and islanded models is depicted in Fig. <ref type="figure">6</ref>. As expected, the renewable energy curtailment is greater in the case of the islanded model (shown in red) in all timeslots except 9, as the excess RE cannot be exported to the grid. A voltage limit is met in Timeslot 9 on Node 22 that forces the curtailment in Case 2. The green ammonia plant consumes as much of the excess RE in the islanded case that the constraints for both the ammonia plant and the agricultural microgrid allow, and the rest is curtailed at a penalty. Therefore, we see a larger stock of ammonia at the end of the day in the islanded case, Case 3. In Case 2 (shown in blue), the hourly ammonia production is zero for Timeslots 12-18. The system would rather sell as much excess RE as the system allows than produce excess green ammonia. The ammonia produced and the utilization of the renewable energy in the system for each case are outlined in Table <ref type="table">2</ref>. Case 2 shows an improvement in renewable energy utilization over Case 1 while producing over three times the amount of ammonia by the end of the day. The RE utilization decreases in Case 3 as the system is islanded, and excess RE can no longer be sold back to the grid. However, more ammonia is produced by the end of the day to maximize the amount of RE used in the system. Under the emergency scenario in Case 4, the total available renewable energy was utilized while producing ammonia only in timeslots with excess RE. Case 4 will be further discussed in the following section.  To investigate the financial impact of this coupling, simplified ammonia plant electricity costs and profits are calculated postsolve. The real and reactive DLMPs at Node 7 are multiplied to the ammonia plant electricity demand in Cases 1 and 2 to calculate the true electricity costs of the ammonia plant. Electricity costs of $869.36 and $2665.66 were computed for Cases 1 and 2, respectively. Recall the ammonia produced in Case 1 is 5.00 tons, and the amount produced in Case 2 is 17.27 tons. Ammonia prices are historically quite variable, with prices soaring over $1000 per ton in 2021 <ref type="bibr">[61]</ref>. However, the minimum average selling price of ammonia in years 2008-2014 was $499 per ton of ammonia <ref type="bibr">[62]</ref>. Therefore, this conservative market value is used to find the simplified profit (only considering electricity costs) from selling ammonia. The daily profits calculated for Case 1 and Case 2 are, respectively, $1625.64 and $5952.71.</p><p>A decoupled case producing 17.27 tons of ammonia per day and a coupled case producing 5.00 TPD are studied for a better comparison. However, the decoupled case is designed to use a constant power consumption across all timeslots by the ammonia plant. The total electricity cost of this case is $3512.13, nearly a 32% increase in the coupled case's (Case 2) electricity cost. This higher cost results in the coupled case's daily profit exceeding that of the decoupled case by more than 16%. Next, a coupled case held to 5.00 TPD is compared to Case 1. The flexible plant produced ammonia when DLMPs were low. Electricity costs drop by nearly a third, with the electricity cost of the ammonia plant being $590.64. Ammonia plant daily profits increase 17% in this case. The ammonia plant financially benefits from the flexible coordination with the electricity DSO. Table <ref type="table">3</ref> summarizes the results of this analysis.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.">Impact of ammonia fuel cell in emergency state</head><p>The total system energy in Case 4 for each timeslot is depicted in Fig. <ref type="figure">7</ref>. The renewable energy exceeds the base, non-ammonia plant demand in Timeslots 8 and 11-16. Under the assumption that all critical loads are met, excess RE can be consumed by the ammonia plant and made available for future energy use through the fuel cell. Due to the duration of the outage being unknown,  energy storage is recommended during this time so valuable energy is not wasted. In all other timeslots, the renewable energy in the system is not enough to meet the base demand. Therefore, the system relies on the BESS, direct ammonia fuel cell, and the distributed generator. The battery does not bid into the system and is used freely to best serve the system. Thus, the BESS charges during times of high RE and discharges at timeslots later in the day that do not have RE available. The fuel cell bids at a lower cost than the DG, and the system utilizes this resource in many timeslots. The fuel cell alone is not enough in most cases, as it has a relatively small power output. Therefore, the high-cost DG operates to make up for the necessary generation. Note, in most cases, the green ammonia itself is the valueadded commodity. In the case of an emergency, when the price of electricity is extremely high, converting the green ammonia back to electrons may be more cost-effective than selling to the bulk ammonia market. In an emergency, supplying power to the most critical loads (e.g., life-supporting loads) is more important than the cost of electricity.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>The case studies provide numerical evidence that indicate the advantages of using a green ammonia plant as a flexible load and storage solution for agricultural community microgrids. The following observations are made for the first time.</p><p>&#8226; The DLMP can be favorably impacted by coupling the flexible green ammonia plant to the agricultural microgrid. Congestion and or voltage violations can be reduced or removed by optimally scheduling the ammonia plant with respect to grid conditions. Operational challenges in the microgrid with high levels of RE can be mitigated as a result of this coordination.</p><p>&#8226; The flexible operation of the green ammonia plant reduces the curtailment of renewable energy sources in a high penetration scenario. This is achieved by creating additional ammonia to consume excess renewable generation.</p><p>&#8226; By optimally controlling the green ammonia plant, the electricity demand shifts away from the peak electricity time to times with greater available renewable energy. A benefit of the coordination between the microgrid and the ammonia plant is the ability to shift demands to times where renewable energy would have otherwise been curtailed in a high renewable energy scenario. Also, reducing peak demands by allowing the ammonia plant to consume minimal energy in the 'warming' mode provides additional relief to the microgrid.</p><p>&#8226; As a result of this coupling, ammonia plant economics can be improved. Case studies showed electricity costs of the coupled ammonia plant could be reduced due to the plant operating in timeslots with lower DLMPs. Therefore, ammonia plants can gain higher profits when coupled with the optimal operation of the electricity grid.</p><p>&#8226; Through the chemical energy storage capabilities of ammonia, the coordinated agricultural microgrid and green ammonia plant offer a unique solution for storing excess renewable energy. The excess renewable energy will be stored in ammonia and sold to the bulk ammonia or hydrogen market or used as electricity through the direct ammonia fuel cell. An advantage of chemical energy storage in ammonia over traditional batteries is long-term storage capability.</p><p>&#8226; The fuel cell offers additional power generation to the agricultural microgrid in emergencies or when the price of electricity is very high. Otherwise, green ammonia is more profitable when sold to the bulk ammonia or hydrogen market. The fuel cell allows this form of energy storage to be sold back to the grid, similar to a traditional battery but at a lower round-trip efficiency. The ability to sell ammonia directly differentiates this storage solution from a traditional battery.</p><p>A novel coordinated electricity and green ammonia plant model was formulated and validated on an agricultural community microgrid based on the PG&amp;E 69-node distribution system. The impact of coupling the electrical system and the green ammonia plant on the DLMP was shown for the first time. This cooperation could strengthen future electricity distribution markets that consider DLMP. Further, the proposed model and method can offer utilities a unique tool in managing high renewable energy scenarios by coupling electricity distribution systems and green ammonia plants for storage and demand response solutions.</p><p>Not studied in this work is the cost of electricity incurred to the ammonia plant by storing excess renewable energy in ammonia. Quantifying a financial incentive for demand response services beyond the benefits of DLMP is interesting future work and can be easily added to the proposed model. Further, this work may impact policies regarding agricultural community microgrids with significant amounts of renewable energy resources.</p><p>To enhance the impact of the demand-responsive green ammonia plant, the anhydrous ammonia fuel and the direct ammonia fuel cell can be moved to other locations (nodes) in the system in the case of voltage instability, thermal line limits being met, or an emergency. Therefore, mobile fuel cells allow not only the temporal storage of electricity but also locational storage. The power generated by the fuel cell could serve any node in need and is not limited to a single node as most stationary power generators are. The total cost of this, including fuel and fuel cell transport, would have to be less than the elevated DLMP at this location.</p><p>This study can be adapted to analyze a variety of flexible loads with storage capabilities, each with unique considerations of advantages, drawbacks, and constraints. Our future work includes the consideration of the variability of renewable energy generation using stochastic programming techniques and the development of a dynamic decision-making tool to assist with smart planning of the proposed technology and method.</p></div></body>
		</text>
</TEI>
