A method and system for controlling the concentration of ammonia in the preparation of ammonia water from liquid ammonia.
By establishing a pressure-flow cross-coupling relationship and a mass conservation check leakage detection mechanism in the liquid ammonia preparation system, the safety protection of the liquid ammonia preparation system has been transformed from a reactive response to an active elimination mechanism, reducing system complexity and maintenance costs, and improving the reliability of leak identification and the availability of continuous system operation.
Patent Information
- Application Number
- CN202611415190.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-12
- Publication Date
- 2026-11-17
AI Technical Summary
Existing overpressure and leakage protection systems for liquid ammonia production rely on dedicated safety shut-off hardware such as safety valves, emergency shut-off valves, and leakage linkage shut-off devices. These hardware devices are essentially reactive mechanisms that are delayed in response, cannot be adaptively adjusted, frequently malfunction, rely on a single criterion, and require manual reset.
By establishing a pressure-flow cross-coupling relationship and a mass conservation check leakage detection mechanism within the concentration control loop, safety protection functions are embedded in the concentration control process. The pipeline pressure transmitter is used to collect the pressure change rate and current pressure deviation value in real time to generate a pressure coupling command, which drives the ammonia and water side regulating valves to perform active constraints. The online concentration detection device obtains the concentration value of the finished ammonia water in real time, determines system leakage, and executes gradual shutdown to achieve safety isolation.
This shifts security protection from reactive, post-event response to proactive, pre-event elimination, reducing system complexity and maintenance costs, improving the reliability of leak identification and the availability of continuous system operation, reducing the probability of accidental shutdowns, and enabling automatic assessment of anomaly elimination and automatic reset without human intervention.
Smart Images

Figure CN123114100A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of chemical process control technology, specifically relating to a method and system for controlling the concentration of ammonia in the preparation of ammonia water from liquid ammonia. Background Technology
[0002] The preparation of ammonia water from liquid ammonia is a common process in chemical production. Liquid ammonia is transported from storage tanks through pipelines to a mixing unit where it is mixed and dissolved with process water to produce ammonia water of the target concentration. Because liquid ammonia has a high saturated vapor pressure at room temperature, the pipeline system is always under positive pressure. Furthermore, liquid ammonia itself is toxic and highly irritating. Overpressure or pipeline leaks can pose a serious threat to personnel safety and the environment.
[0003] Existing liquid ammonia preparation systems generally separate overpressure and leakage protection functions from the concentration regulation circuit, based on concentration control, and use dedicated safety shut-off hardware to achieve safety protection.
[0004] Specifically, to address overpressure risks, the industry typically equips pipelines and containers with safety valves to provide mechanical pressure relief channels, or equips them with emergency shut-off valves to quickly shut off the liquid ammonia supply pipeline when the pressure exceeds the limit; to address leakage risks, the industry typically deploys environmental ammonia concentration sensors at key points and equips them with leakage linkage shut-off devices to automatically shut off the liquid ammonia feed channel when the ammonia concentration exceeds the standard.
[0005] The industry generally believes that safety valves, emergency shut-off valves, and leakage linkage shut-off devices are irreplaceable bottom-line safety devices in liquid ammonia systems. The reason is that the response speed of software judgment or manual handling is insufficient to cope with the rapid development of overpressure and leakage. Hardware-level rapid isolation and venting are necessary to effectively control risks.
[0006] However, these dedicated safety hardware devices are essentially reactive mechanisms, triggering protection only after pressure exceeds limits or leakage has occurred. There is always an unavoidable response delay between the occurrence of an anomaly and the activation of protection. Safety valves have fixed set pressures that cannot be adaptively adjusted according to system conditions, making them prone to false alarms and unnecessary shutdowns due to transient disturbances in scenarios with frequent fluctuations. Leakage-linked shut-off devices trigger protection based solely on the ambient ammonia concentration, making them susceptible to interference from ambient airflow and sensor calibration drift, leading to false alarms or missed alarms. Each safety hardware activation results in a complete system shutdown, requiring manual intervention for reset and confirmation before operation can resume, severely impacting production efficiency and system availability. Most importantly, the existing system lacks real-time coupling between pressure monitoring signals, leakage detection signals, and concentration adjustment processes. Pressure trend information and material balance information acquired by the monitoring layer are not used to proactively intervene in the operating parameters of the preparation process itself, resulting in safety protection remaining in a passive response mode rather than proactive prevention. Summary of the Invention
[0007] The technical problem to be solved by this invention is that the overpressure and leakage protection of existing liquid ammonia preparation systems relies on dedicated safety shut-off hardware such as safety valves, emergency shut-off valves and leakage linkage shut-off devices. These hardware devices are essentially reactive mechanisms that have drawbacks such as delayed response, inability to self-adapt, frequent malfunctions, reliance on a single criterion and the need for manual reset.
[0008] To address the aforementioned technical problems, this invention provides a concentration control method and system for preparing ammonia water from liquid ammonia, comprising: liquid ammonia being transported to a mixing unit via an ammonia-side regulating valve; a pipeline pressure transmitter acquiring the ammonia-side pipeline pressure value in real time and calculating the pressure change rate; a controller generating a pressure coupling command based on a weighted result of the pressure change rate and the current pressure deviation value, wherein the current pressure deviation value is the difference between the current pressure value and a preset normal operating reference pressure value; when the weighted result exceeds a preset threshold, driving the ammonia-side regulating valve to reduce its opening and simultaneously driving the water-side regulating valve to increase its opening, thereby actively constraining the pipeline pressure within a safe envelope; ammonia and process water mixing in the mixing unit to generate ammonia water; an online concentration detection device acquiring the finished ammonia water concentration value in real time; the controller continuously calculating the difference between the ammonia-side input mass flow rate and the product of the finished ammonia water output mass flow rate and the concentration value; when the difference continuously exceeds the allowable deviation band, determining that the system has a leak; when the leak criterion is met, the controller performs a gradual shutdown through the ammonia-side regulating valve until complete closure, completing safe isolation.
[0009] Furthermore, the weighted result is generated by summing the pressure change rate multiplied by the rate weighting coefficient and the current pressure deviation value multiplied by the pressure weighting coefficient. The rate weighting coefficient is greater than the pressure weighting coefficient. The current pressure deviation value is the difference between the current pressure value and the normal operating baseline pressure value, which is determined based on the statistical average of pipeline pressure during system operation in steady-state concentration control mode. This setting prioritizes the controller's response to pressure rise trends over its response to pressure deviations. The fact that the rate weighting coefficient is greater than the pressure weighting coefficient means that under abnormal pressure conditions, the rate term (the product of the rate weighting coefficient and the pressure change rate) contributes more to the weighted result than the deviation term (the product of the pressure weighting coefficient and the current pressure deviation value). In other words, the controller's decision response is primarily driven by the pressure change trend rather than the degree of pressure deviation. During normal operation, the pressure deviation is close to zero, keeping the weighted result at an extremely low level. Only when the pressure truly deviates from the baseline and accelerates upwards does the weighted result significantly increase, triggering intervention. This achieves feedforward active intervention rather than passive threshold triggering, while avoiding false interventions caused by fluctuations in normal operating conditions.
[0010] Furthermore, the execution priority of the pressure coupling command is higher than that of the concentration setpoint tracking command. When the pressure coupling command takes effect, the controller suspends concentration setpoint tracking and transfers the opening control of the ammonia-side regulating valve and the water-side regulating valve to the pressure coupling regulation logic. This priority arbitration mechanism ensures that the safety objective is always satisfied first when safety constraints and concentration control conflict.
[0011] Furthermore, when the pipeline pressure returns to the safe range and the rate of pressure change drops to zero or a negative value, the controller automatically returns control of the valve opening to the concentration setpoint tracking logic and gradually adjusts the valve opening to the target value required for the concentration ratio. This automatic switching mechanism allows the system to smoothly return to normal concentration control without manual intervention after the pressure constraint is lifted.
[0012] Furthermore, the mass conservation difference is calculated as the product of the ammonia input mass flow rate measured by the ammonia-side mass flow meter and the mass flow rate of the finished ammonia water output pipeline, plus the ammonia mass fraction obtained by the online concentration detection device. This calculation fully utilizes the existing sensor signals in the concentration control loop, eliminating the need for additional environmental leak detection hardware.
[0013] Furthermore, the condition for determining that the system has a leak is that the difference continuously exceeds the allowable deviation range within a preset time window, and the filter result still meets the exceedance condition after the controller filters the difference using a moving average to eliminate transient deviations caused by flow metering fluctuations and concentration detection response delays. The introduction of dual criteria effectively distinguishes between actual leakage and measurement noise, avoiding misjudgment.
[0014] Furthermore, the gradual shutdown is implemented by the controller gradually reducing the opening of the ammonia-side regulating valve at a preset rate until it is fully closed, while simultaneously keeping the water-side regulating valve open to allow process water to continuously flow through the mixing unit to dilute and flush the residual ammonia in the pipeline. The gradual shutdown method avoids the water hammer effect caused by rapid valve closure, while water-side flushing ensures that the residual ammonia in the pipeline is safely diluted.
[0015] Furthermore, after safety isolation is completed, the controller continuously monitors the pipeline pressure trend and the change in the mass conservation difference. When the pipeline pressure stabilizes within the normal operating range and the difference returns to within the allowable deviation range and continues for a preset confirmation time, the abnormality is determined to have been eliminated. Automatic recovery assessment avoids reliance on manual inspection confirmation.
[0016] Furthermore, once the anomaly has been resolved, the controller performs a gradual reset, progressively increasing the opening of the ammonia-side regulating valve at a preset rate. After each increase in opening, the pipeline pressure and differential value are rechecked to ensure they remain within the normal range. Only after confirmation of normality is the next increase in opening performed, until normal concentration control operation is restored. This gradual, verification-based reset ensures that the anomaly will not be triggered again during system recovery.
[0017] The present invention also provides a liquid ammonia preparation ammonia concentration control system for implementing the above method, including an ammonia supply unit, a pressure acquisition unit, a water distribution unit, a mixing unit, a concentration detection unit, and a control unit. The control unit is configured to perform pressure-flow cross-coupling regulation and mass conservation check for leakage detection, and to complete safety isolation through an ammonia-side regulating valve when the leakage criterion is met.
[0018] The beneficial effects of this invention include:
[0019] First, the safety protection function is upgraded from a passive response after the fact to an active elimination before the fact. By using feedforward coupling of the pressure change rate, the suppression is completed before the pressure reaches the dangerous value, thus fundamentally eliminating the conditions for the formation of overpressure conditions.
[0020] Second, the existing regulating valves, flow meters, and concentration detection devices in the concentration control loop can be fully reused to achieve safety protection functions. There is no need to configure additional safety hardware such as safety valves, emergency shut-off valves, and leakage linkage shut-off devices, which reduces system complexity and maintenance costs.
[0021] Third, leakage is detected based on the material mass conservation relationship within the system. The criterion comes from the core process variables rather than external sensors that are susceptible to environmental interference, which improves the reliability and long-term stability of leakage identification.
[0022] Fourth, it has the ability to distinguish between transient disturbances and real dangers. By using the dual criteria of pressure change rate and mass conservation, as well as the moving average filtering mechanism, it reduces the probability of false shutdown and improves the availability of continuous system operation.
[0023] Fifth, based on continuous monitoring of process parameters, automatic assessment of anomaly elimination and gradual automatic system reset are achieved, enabling operation to resume without manual intervention and shortening unplanned downtime. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the overall process of the method of the present invention in Embodiment 1.
[0025] Figure 2 This is a control logic block diagram for the pressure-flow weighted coupling regulation in Example 2.
[0026] Figure 3 This is a schematic diagram of the state switching of the priority arbitration mechanism in Example 3.
[0027] Figure 4 This is a timing diagram illustrating the return of control after pressure regression in Example 4.
[0028] Figure 5 This is a schematic diagram of the data flow for the mass conservation check calculation in Example 5.
[0029] Figure 6 This is a flowchart of the logic judgment process for moving average filtering and leakage determination in Example 6.
[0030] Figure 7 This is the execution timing diagram for the gradual shutdown and water-side flushing in Example 7.
[0031] Figure 8 This is a schematic diagram of the criterion structure for automatic recovery evaluation in Example 8.
[0032] Figure 9 This is a flowchart of the step-by-step verification process for the progressive reset process in Example 9.
[0033] Figure 10 This is a schematic diagram showing the composition and signal connection relationships of each functional unit of the system in Example 10.
[0034] Figure 11 This is a comparison curve of the pressure response in the verification experiment of Example 11.
[0035] Figure 12 This is a schematic diagram showing the comparison of leakage identification time in the verification experiment of Example 11. Detailed Implementation
[0036] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.
[0037] Example 1
[0038] This embodiment corresponds to claim 1 and describes the complete process of the method of the present invention.
[0039] Reference Figure 1 This embodiment provides a method for controlling the concentration of ammonia water prepared from liquid ammonia. This method embeds the safety protection function into the concentration control process itself by establishing a pressure-flow cross-coupling relationship and a mass conservation check leakage discrimination mechanism inside the concentration regulation loop, without relying on dedicated safety shut-off hardware such as safety valves, emergency shut-off valves or leakage linkage shut-off devices.
[0040] Step S1: Liquid ammonia is transported from the storage tank to the mixing unit via the ammonia-side regulating valve. The pipeline pressure transmitter collects the ammonia-side pipeline pressure value in real time and calculates the pressure change rate.
[0041] It should be noted that the ammonia-side regulating valve is a process regulating valve used to control the ammonia flow rate in the concentration ratio regulation loop. During normal operation, it continuously participates in flow regulation and has the stroke capability from fully open to fully closed and rapid response characteristics.
[0042] The pipeline pressure transmitter is installed on the section of the liquid ammonia delivery pipeline downstream of the ammonia-side regulating valve and between the inlet of the mixing unit. Its measurement range covers the saturated vapor pressure range of liquid ammonia at the operating temperature. The rate of pressure change is obtained by the controller performing a time-differential calculation on the pressure signal output by the pressure transmitter; specifically, it is the difference between the pressure value of the current sampling period and the pressure value of the previous sampling period divided by the sampling period time. The controller's sampling period is set from 100 milliseconds to 500 milliseconds to ensure that rapid pressure change trends can be captured. Due to its saturated vapor pressure characteristics, liquid ammonia in the pipeline is always maintained at a positive pressure, and the pressure value typically fluctuates within the range of 0.5 MPa to 1.5 MPa depending on the ambient temperature and the liquid supply rate.
[0043] Step S2: The controller generates a pressure coupling command based on the weighted result of the pressure change rate and the current pressure deviation value. When the weighted result exceeds the preset threshold, it drives the ammonia-side regulating valve to reduce its opening and simultaneously drives the water-side regulating valve to increase its opening, thereby actively constraining the pipeline pressure within a safe envelope.
[0044] It should be noted that this step is the implementation method of the first set of cross-coupling relationships in this invention. In the prior art, the pressure monitoring on the liquid ammonia side and the flow regulation on the water side belong to completely independent control loops. The pressure signal is only used to trigger the action of the safety valve or emergency shut-off valve and does not participate in the flow regulation decision.
[0045] This invention incorporates pressure information into the flow regulation logic in real time, establishing a dynamic coupling relationship between the pressure in the ammonia-side pipeline and the opening degree of the regulating valves on both sides.
[0046] The current pressure deviation is calculated by subtracting the normal operating reference pressure from the pressure output of the pipeline pressure transmitter at the current sampling time. The normal operating reference pressure is the time-averaged pipeline pressure during system operation in steady-state concentration control mode. The physical meaning of the weighted result is that it integrates the rate of pressure change information and the deviation value information reflecting the degree of deviation of the current pressure from the normal operating state into a unified criterion.
[0047] During normal operation, the pipeline pressure fluctuates slightly around the reference value, the pressure deviation is close to zero, and the pressure change rate is close to zero. The weighted result of the two is at an extremely low level, far below the preset threshold, and will not trigger the pressure coupling command erroneously.
[0048] When abnormal operating conditions cause the pipeline pressure to deviate from the baseline and continue to rise, the pressure deviation value and the rate of pressure change increase simultaneously. The weighted result quickly exceeds the preset threshold, and the controller executes two coordinated actions: reducing the opening of the ammonia-side regulating valve to reduce the supply of liquid ammonia and thus reduce the source of system pressure, and increasing the opening of the water-side regulating valve to increase the absorption capacity of the water side in the mixing unit and thus accelerate the dissolution and absorption of vaporized ammonia. This achieves a dual suppression effect of reducing supply at the source and increasing absorption at the end, which, from the perspective of concentration control, manifests as a correction towards dilution.
[0049] During the pressure coupling mode, the controller calculates the opening degree of the ammonia-side regulating valve and the water-side regulating valve according to the following proportional adjustment algorithm.
[0050] Define the excess quantity ΔW as the weighted result W minus the preset threshold W. th ΔW=WW th When ΔW is greater than zero, the target opening degree of the ammonia-side regulating valve is the opening degree value at the instant it enters the pressure coupling mode minus ΔW multiplied by the ammonia-side gain coefficient K. a The resulting correction amount is: V NH3 =V NH3 ,0-K a ×ΔW; The target opening degree of the water-side regulating valve is the opening degree value at the instant it enters the pressure coupling mode, plus ΔW multiplied by the water-side gain coefficient K. w The resulting correction amount is: V water =V water 0+K w ×ΔW. Where V NH3 ,0 and V water ,0 represents the opening value of each valve at the instant of entering the pressure coupling mode; K a and K w To control the gain coefficient, its dimension is percentage per megapascal (% / MPa) over the full stroke, and its value is determined based on the pressure-flow characteristics of the system.
[0051] The ammonia-side regulating valve has a lower limit (fully closed if not lower than 0%), and the water-side regulating valve has an upper limit (fully open if not exceeding 100%). During the pressure coupling mode, the controller continuously updates the valve openings according to the above algorithm at sampling intervals. Since the W value tracks pressure state changes in real time, the valve openings dynamically adjust with the pressure state, forming a proportional feedback regulation relationship with the weighted result as the driving quantity and the valve opening as the execution output. When the pressure is effectively suppressed and the weighted result falls below the threshold, ΔW becomes zero or negative, and the controller exits the pressure coupling mode according to the conditions described in Example 4. In specific implementation, K a The value can be taken as 60% / MPa to 150% / MPa, K wThe value can be taken from 30% / MPa to 80% / MPa. The specific value is determined by adjusting the system so that the pressure peak does not exceed the upper boundary of the safety envelope under the set disturbance conditions.
[0052] The safety envelope refers to the upper pressure limit set by the controller. This limit is lower than the safety margin value of the pipeline design pressure, and is usually taken as 80% of the pipeline design pressure as the upper boundary of the safety envelope. Since the controller intervenes when the pressure is still rising, the pipeline pressure is always constrained within the safety envelope during actual operation, and it is impossible to reach the set pressure of the safety valve or the trigger pressure of the emergency shut-off valve. If dedicated safety hardware is used, the triggering condition will be lost.
[0053] Step S3: Ammonia and process water are mixed in the mixing unit to generate ammonia water, and the online concentration detection device obtains the concentration value of the finished ammonia water in real time.
[0054] It should be noted that the mixing unit is a process vessel where liquid ammonia and process water come into contact and dissolve. It can be a static mixer, a jet mixer, or a stirred mixing tank. After the liquid ammonia enters the mixing unit, it comes into contact with the process water and dissolves to form ammonia water. The dissolution process releases heat, causing the temperature of the mixture to rise.
[0055] An online concentration detection device is installed on the finished ammonia water output pipeline of the mixing unit. It continuously measures the mass fraction of ammonia in the ammonia water using refractive index, density, or ultrasonic methods. The measurement range of the concentration detection device covers the upper and lower deviation range of the target product concentration, and the detection response time is no more than 2 seconds. In normal concentration control mode, this concentration signal is compared with the concentration setpoint as feedback, and the controller adjusts the opening of the ammonia-side and water-side regulating valves accordingly to maintain a stable finished product concentration.
[0056] Step S4: The controller continuously calculates the difference between the mass flow rate of ammonia input and the product of the mass flow rate and concentration of finished ammonia output. When the difference continuously exceeds the allowable deviation range, it is determined that there is a leak in the system.
[0057] It should be noted that this step represents the second set of cross-coupling relationships in this invention. Its physical principle is based on the law of conservation of mass, which states that under leak-free steady-state operating conditions, the mass of ammonia added to the system per unit time should be equal to the mass of ammonia flowing out of the system per unit time with the finished ammonia solution.
[0058] The ammonia-side input mass flow rate is measured by an ammonia-side mass flow meter installed on the liquid ammonia delivery pipeline. The actual ammonia mass flow rate in the finished product is equal to the finished product output mass flow rate measured by the mass flow meter on the finished ammonia water output pipeline multiplied by the ammonia mass fraction obtained by the online concentration detection device. The difference between these two values will fluctuate slightly during normal operation due to metering accuracy limitations; the allowable deviation band is set to cover the range of normal metering fluctuations. When this difference consistently exceeds the allowable deviation band, it indicates that some ammonia has failed to flow out with the finished product after entering the system, meaning that some ammonia has escaped or leaked somewhere within the system. This method of judgment is based on calculations using existing flow and concentration sensor signals in the concentration control loop, eliminating the need to deploy ammonia concentration sensors or infrared leak detectors in the environment.
[0059] Step S5: When the leakage criterion is met, the controller performs a gradual shutdown through the ammonia-side regulating valve until it is completely shut off, thus completing the safety isolation.
[0060] It should be noted that when the leakage criterion in step S4 is met, the controller sends a gradual shut-off command to the ammonia-side regulating valve, gradually reducing the valve opening according to the preset shut-off rate until it is completely closed. The reason for gradual shut-off rather than a one-step emergency stop is that a rapid closure of the regulating valve would generate a water hammer effect in the liquid ammonia pipeline, and the transient pressure surge might exceed the pipeline's design pressure; gradual shut-off allows for a smooth pressure transition within the pipeline, avoiding secondary risks. After the ammonia-side regulating valve is completely closed, the liquid ammonia supply channel is cut off, and the leakage source stops leaking due to the loss of material supply, achieving safe isolation. Since the ammonia-side regulating valve continuously participates in concentration regulation during normal operation, its valve core, valve seat, and actuator are always in an active state, eliminating the risk of jamming caused by prolonged inactivity. Its shut-off reliability and response speed fully meet the safety isolation requirements, eliminating the need for additional independent shut-off hardware such as electromagnetic shut-off valves or pneumatic emergency valves.
[0061] Example 2
[0062] This embodiment corresponds to claim 2, describing the specific method for generating the weighted result. (Refer to...) Figure 2 Based on Embodiment 1, this embodiment further defines the calculation method of the weighted result on which the controller generates the pressure coupling command.
[0063] The weighted result is generated by summing the pressure change rate multiplied by a rate weighting coefficient and the current pressure deviation value multiplied by a pressure weighting coefficient. The rate weighting coefficient is greater than the pressure weighting coefficient, ensuring that the controller responds to the upward pressure trend more preferentially than to the degree of pressure deviation. The current pressure deviation is the pressure value output by the pipeline pressure transmitter at the current sampling time minus the normal operating reference pressure value. The normal operating reference pressure value is determined based on the time average of the pipeline pressure during continuous operation in steady-state concentration control mode. It is automatically calculated and stored by the controller after system commissioning and can be periodically updated according to the drift in liquid ammonia vapor pressure caused by seasonal changes in ambient temperature.
[0064] The pressure change rate is the result of the controller performing a time derivative operation on the pressure transmitter output signal in each sampling cycle, with dimensions in megapascals per second. The current pressure deviation is the difference between the pipeline pressure value output by the pressure transmitter at the current sampling moment and the normal operating reference pressure value, with dimensions in megapascals. The weighted result is calculated according to the following relationship:
[0065] W = α × (dP / dt) + β × (P - P0);
[0066] Where α is the rate weighting coefficient, with the dimension of seconds, used to convert the pressure change rate from megapascals per second to an equivalent pressure contribution (with the dimension of megapascals); β is the pressure weighting coefficient, a dimensionless positive real number, which directly affects the pressure deviation value with the dimension of megapascals. With this setting, the two terms of the weighted result W can be directly summed, and the dimensions of the weighted result W and the preset threshold are both megapascals. The physical meaning of α is: extrapolating the pressure change rate to an equivalent pressure increment over a time scale of α seconds, thereby giving it a forward-looking effect of trend prediction and quantification.
[0067] The values of α and β should satisfy the following principles:
[0068] Under typical abnormal pressure conditions that the system may encounter (e.g., pressure change rates on the order of 0.02 MPa / s to 0.1 MPa / s), the contribution of the rate term α×(dP / dt) to the weighted result W should be 3 to 10 times that of the deviation term β×(P-P0) to ensure that the controller has a significantly preferential response sensitivity to pressure rise trends. For example, when the expected abnormal pressure change rate is 0.05 MPa / s and the pressure deviation is 0.05 MPa, taking α as 8 seconds and β as 1 will result in the rate term contributing 0.4 MPa and the deviation term contributing 0.05 MPa, with a ratio of 8, satisfying the above design principle.
[0069] The setting of the preset threshold needs to balance safety and avoid excessive intervention. If the threshold is too low, frequent fluctuations in normal operating conditions will trigger pressure coupling commands, affecting the stability of concentration control. If the threshold is too high, it will weaken the lead time for trend prediction. Since the weighted result uses the pressure deviation value rather than the absolute pressure value, the weighted result fluctuates around zero during normal operation (pressure deviation is close to zero and the rate of change is close to zero). The weighted result only increases significantly when the pressure begins to deviate from the baseline and accelerates upward. Taking the system described in Example 11 as an example, with α set to 8 seconds and β set to 1, the pressure change rate is within ±0.005 MPa per second and the pressure deviation is within ±0.02 MPa during normal operation. The normal fluctuation of the weighted result is 8 × 0.005 + 1 × 0.02 = ±0.06 MPa. A preset threshold of 0.15 MPa can achieve the effect of not triggering the command under normal operating conditions but responding quickly to abnormal trends.
[0070] Example 3
[0071] This embodiment corresponds to claim 3, describing a priority arbitration mechanism between the pressure coupling command and the concentration setpoint tracking command. (Refer to...) Figure 3 Based on Example 2, this example further defines the processing logic when the pressure coupling command and the concentration control command conflict.
[0072] The execution priority of the pressure coupling command is higher than that of the concentration setpoint tracking command. When the pressure coupling command takes effect, the controller suspends the concentration setpoint tracking and transfers the opening control of the ammonia-side regulating valve and the water-side regulating valve to the pressure coupling regulation logic.
[0073] The concentration setpoint tracking command is a valve opening adjustment command output by the controller in normal operation mode to maintain the finished ammonia concentration equal to the set value. In normal mode, the controller uses the measurement value from the online concentration detection device as a feedback signal, compares it with the target concentration value set by the operator, and calculates the target opening of the ammonia-side and water-side regulating valves based on the deviation using PID or other control algorithms. The pressure coupling command is a valve opening correction command generated based on the pressure weighting result, as described in Embodiment 2. Under certain operating conditions, the two sets of commands may make contradictory requests to the same regulating valve: for example, the concentration control logic requires increasing the opening of the ammonia-side regulating valve to increase the low ammonia concentration, while at the same time, the pressure coupling logic requires decreasing the opening of the ammonia-side regulating valve because it detects an upward pressure trend. For the above contradictory situation, this embodiment sets a priority rule: safety constraints take precedence over quality objectives, that is, the pressure coupling command has the highest execution authority. When the controller determines that the pressure weighting result exceeds the preset threshold, it switches the control of the two regulating valves from the concentration tracking logic to the pressure coupling logic. The concentration tracking logic suspends output, and its internal integral term is frozen to maintain the current value for subsequent uninterrupted switching. Priority arbitration is implemented internally by software logic within the controller, requiring no additional hardware switching devices.
[0074] Example 4
[0075] This embodiment corresponds to claim 4, describing the mechanism of the concentration tracking logic that returns control after the pressure constraint is released. (Refer to...) Figure 4 Based on Example 3, this example further defines the conditions and process for the system to smoothly return from the pressure coupling mode to the normal concentration control mode.
[0076] When the pipeline pressure returns to the safe range and the rate of pressure change drops to zero or a negative value, the controller automatically returns the control of the opening of the ammonia-side regulating valve and the water-side regulating valve to the concentration setpoint tracking logic, and gradually adjusts the valve opening to the target value required for the concentration ratio.
[0077] The safe zone refers to the area defined by the pipeline pressure being below the upper boundary of the safe envelope minus a hysteresis value. The purpose of setting the hysteresis is to prevent frequent switching of control near the boundary. A pressure change rate dropping to zero or a negative value indicates that the pipeline pressure has stopped rising or is falling, and the abnormal pressure trend has been suppressed. When both of these conditions are met, the controller determines that the pressure risk has been eliminated and returns control of the regulating valve to the concentration tracking logic.
[0078] Before control is returned, to achieve a smooth handover, the controller needs to perform "spatiotemporal alignment" of the PID output. First, the output value of the concentration PID controller is forcibly initialized to the actual opening values of the two regulating valves (i.e., the opening value output in the last cycle of the pressure coupling mode), achieving spatial alignment and ensuring the PID output starting point is consistent with the actuator's current state. Second, time alignment is required, eliminating abrupt changes in the PID integral term that may occur due to control mode switching. Specifically, the controller adjusts the output value based on the currently forcibly initialized value U. init and the current concentration deviation e current And the set PID parameters, through formula I new =U init -Kp×e current The initial value of the integral term is recalculated and set, where Kp is the proportional gain coefficient. At the instant the PID controller unfreezes the integral and resumes operation, the sum of its proportional term and the reset integral term is exactly equal to U. init This refers to the current valve position, so that when control is completely released and normal concentration control is entered, the controller output command will not undergo any step change.
[0079] Then, the role of the differential term is gradually restored to complete the smooth transition to the concentration setpoint tracking logic without disturbance.
[0080] The return process is not an instantaneous switch, but a gradual adjustment: the controller smoothly transitions the opening of the two regulating valves from their current values to the target opening value calculated by the concentration tracking logic at a preset adjustment rate. This gradual adjustment avoids flow shocks and pressure fluctuations that may be caused by abrupt changes in valve opening. During the gradual adjustment process, the controller continuously monitors the pressure-weighted result. If the pressure-weighted result exceeds the preset threshold again during the adjustment process, the return process is immediately interrupted and re-entering the pressure coupling mode. During the pause, the integral term of the concentration tracking logic remains frozen. Upon resumption, it uses the frozen value as the initial state to continue calculation, achieving a smooth switching and avoiding over-adjustment of concentration due to integral saturation or sudden changes in integral values.
[0081] Example 5
[0082] This embodiment corresponds to claim 5, describing the specific calculation relationship of the mass conservation difference. (Refer to...) Figure 5 Based on Example 1, this example further defines the specific mathematical relationship between the mass flow rate of ammonia input and the mass flow rate of ammonia in the finished product calculated by the controller.
[0083] The difference is calculated according to the following relationship:
[0084] Δ = NH3,in - sol,out ×C out ;
[0085] in, NH3,in The ammonia input mass flow rate, measured by the ammonia-side mass flow meter, is expressed in kilograms per hour and is directly measured by a Coriolis mass flow meter installed on the liquid ammonia delivery pipeline. sol,out The mass flow meter on the finished ammonia water output pipeline measures the total output mass flow rate of the ammonia solution (sol represents solution), with dimensions in kilograms per hour. This flow meter measures the overall mass flow rate of the ammonia solution (including the solute ammonia and the solvent water). C out The mass fraction of ammonia in the finished ammonia solution, obtained by the online concentration detection device, is a dimensionless quantity, ranging from 0 to 1, representing the proportion of ammonia mass in the finished ammonia solution to the total mass of the solution. Therefore, sol,out ×C out The physical meaning of Δ is the mass of ammonia components flowing out of the system with the finished ammonia solution per unit time, with dimensions in kilograms per hour. It represents the imbalance between the mass of ammonia entering the system and the mass of ammonia leaving the system per unit time.
[0086] It should be noted that the difference on the left end (Δ) The difference represents the imbalance between the mass of ammonia entering and leaving the system per unit time. Under leak-free steady-state operation, all the added ammonia dissolves in the finished ammonia solution and flows out, theoretically resulting in a zero difference. In actual operation, due to the accuracy of the flow meter, the delay in concentration detection response, and the transient accumulation caused by changes in the liquid level within the mixing unit, the difference will fluctuate slightly around zero. The allowable deviation band should cover the above-mentioned normal fluctuation range, typically set at 1% to 3% of the ammonia-side flow metering range as the half-width of the allowable deviation band. When the difference is consistently positive and exceeds the allowable deviation band, it indicates a net loss of ammonia in the system, i.e., a leak. When the difference is consistently negative, it may indicate that the liquid level in the mixing unit is decreasing, releasing accumulated ammonia, which is a normal transient process rather than a leak. Therefore, the leak criterion is only valid when the difference is consistently positive and exceeds the limit.
[0087] Example 6
[0088] This embodiment corresponds to claim 6, describing the time window and moving average filtering mechanism in leakage determination. (Refer to...) Figure 6 Based on Example 5, this example further defines the specific conditions for determining the existence of leakage in the system and the anti-interference measures.
[0089] The conditions for determining that the system has a leak are: the difference value continuously exceeds the allowable deviation range within a continuous preset time window, and the filter result still meets the over-limit condition after the controller filters the difference value by applying a moving average to eliminate transient deviations caused by flow metering fluctuations and concentration detection response delays.
[0090] The setting of the preset time window needs to consider both the sensitivity of leak detection and the ability to prevent false positives. A time window that is too short may cause transient fluctuations in the flow meter or delays in the concentration detection response to be mistakenly identified as leaks due to excessive transient differences; a time window that is too long will delay the detection of actual leaks.
[0091] In this embodiment, the preset time window is set to 10 to 60 seconds, with the specific value determined based on the volume of the mixing unit and the material flow time constant. A continuous deviation means that the difference between each sampling moment within the time window exceeds the allowable deviation band; if any sampling moment falls back into the deviation band, the window timing restarts.
[0092] The moving average filtering is implemented as follows: the controller maintains a fixed-length queue of historical difference data, the queue length equal to the filtering window time divided by the sampling period. At each new sampling time, the latest difference data enters the tail of the queue, and the oldest data is removed from the head of the queue. The controller calculates the arithmetic mean of all data in the queue, and this average is the filtered difference. Only when the filtered difference still exceeds the allowable deviation band does the controller determine that a leak has occurred. Moving average filtering can effectively smooth out transient deviations caused by high-frequency noise from the flow meter and response delays from the concentration detection device. For example, the response time of the concentration detection device is typically 1-2 seconds. Within a few seconds after a step change in the ammonia flow rate, the flow meter has already reflected the new flow value, but the concentration detection has not yet reflected the new concentration value, resulting in a transiently large difference. Moving average filtering can dilute such transient deviations to a level that does not trigger a leak determination.
[0093] Example 7
[0094] This embodiment corresponds to claim 7, describing the specific execution method of the gradual shut-off of the ammonia-side regulating valve and the water-side flushing after the leakage criterion is met. (Refer to...) Figure 7 Based on Example 6, this example further defines the execution details of the security isolation action.
[0095] The gradual shutdown is executed as follows: the controller gradually reduces the opening of the ammonia-side regulating valve at a preset rate until it is fully closed, while keeping the water-side regulating valve open so that process water continues to flow through the mixing unit to dilute and flush the residual ammonia in the pipeline.
[0096] The preset rate refers to the percentage decrease in the opening of the ammonia-side regulating valve per second. This rate setting needs to balance isolation speed and prevention of water hammer. If the rate is too fast, it is equivalent to an emergency stop valve closure, and the liquid ammonia will be suddenly cut off in the pipeline, generating a pressure pulse; if the rate is too slow, it will prolong the leakage duration.
[0097] In this embodiment, the preset shutdown rate is set to decrease the full-stroke opening by 5% to 10% per second, meaning the process from the current opening to full closure takes approximately 10 to 20 seconds. Throughout the gradual shutdown process, the controller continuously monitors the pipeline pressure to ensure that the shutdown process does not cause an abnormal pressure increase. If a sudden pressure increase is detected during the shutdown process, the controller will pause the shutdown action and wait for the pressure to stabilize before continuing.
[0098] The purpose of keeping the water-side regulating valve open is to dilute and flush the residual ammonia gas in the mixing unit and downstream pipelines with process water after the ammonia side is shut off. The water-side valve opening is maintained at the normal operating opening value or appropriately increased. The flushing duration begins when the ammonia-side valve is fully closed, and the duration is set to 2 to 3 times the ratio of the mixing unit volume to the water-side flow rate to ensure that the internal volume of the mixing unit is completely replaced by process water. The water-side regulating valve is only closed or returned to its minimum opening after flushing is completed, to avoid the accumulation of residual ammonia gas in the enclosed space after the ammonia side is shut off, thus preventing potential safety hazards.
[0099] Example 8
[0100] This embodiment corresponds to claim 8, describing an automatic recovery assessment mechanism after security isolation is completed. (Refer to...) Figure 8 Based on Embodiment 1, this embodiment further specifies how the system automatically assesses whether the anomaly has been eliminated after completing security isolation.
[0101] After safety isolation is completed, the controller continuously monitors the pipeline pressure trend and the change in the mass conservation difference. When the pipeline pressure stabilizes within the normal operating range and the difference returns to within the allowable deviation range and continues to reach the preset confirmation time, the abnormality is determined to be eliminated.
[0102] The completion of safety isolation is indicated by the ammonia-side regulating valve being fully closed and the water-side flushing process ending. The controller then enters the automatic recovery assessment phase.
[0103] During this phase, the controller monitors the following two sets of parameters:
[0104] The first group is the pipeline pressure trend. After the ammonia-side valve is fully closed, the pipeline pressure should gradually decrease to the static equilibrium value corresponding to the residual vapor pressure of liquid ammonia and remain stable. If the pressure continues to fluctuate abnormally or increases instead of decreasing, it may indicate that there is a structural defect in the pipeline or that the residual material continues to vaporize. In this case, the recovery conditions are not met.
[0105] The second group is the mass conservation difference. After the ammonia side valve is fully closed, the ammonia side input flow rate is zero, and the finished product side output flow rate also tends to zero as the mixing unit is emptied. The difference should return to within the allowable deviation zone near zero.
[0106] The preset confirmation time refers to the duration required for both of the above conditions to be met simultaneously; in this embodiment, it is set to 60 to 300 seconds. If any condition is interrupted within the confirmation time, the timer resets. After all confirmation conditions are met, the controller determines that the anomaly causing the safety isolation has been eliminated, and the system has the prerequisites to resume operation. This automatic evaluation mechanism replaces the existing process where operators must visually confirm and manually reset the system after safety hardware actions, reducing reliance on manual intervention.
[0107] Example 9
[0108] This embodiment corresponds to claim 9, describing the specific process of the controller performing a gradual reset after the anomaly elimination determination is established. (Refer to...) Figure 9 Based on Example 8, this example further defines a gradual reset strategy for the system to recover from a safe isolation state to a normal concentration control operation state.
[0109] Once the determination that the abnormality has been eliminated is established, the controller performs a gradual reset: gradually increasing the opening of the ammonia-side regulating valve at a preset rate. After each step of increasing the opening, the pipeline pressure and differential value are rechecked to ensure they remain within the normal range. Only after confirming that they are normal will the next step of increasing the opening be performed until the normal concentration control operation is restored.
[0110] The preset rate for gradual reset is set to increase the opening of the ammonia-side regulating valve by 2% to 5% of its full stroke in each step. After each step of opening increase, the controller waits for an observation period to allow the pipeline pressure and material flow to reach a new steady state; the observation period lasts from 5 to 15 seconds.
[0111] During the observation period, the controller verifies two conditions: whether the weighted result of the pipeline pressure remains below the preset threshold, and whether the mass conservation difference remains within the allowable deviation band. Only when both conditions are met simultaneously will the controller proceed to the next step of increasing the opening. If either condition is not met, the controller immediately stops the reset process, maintains the ammonia-side regulating valve opening at the current step's value or reverts to the previous step's value, and re-enters the automatic recovery evaluation phase to wait for the conditions to be met again.
[0112] This step-by-step verification reset strategy ensures that if the root cause of the safety isolation is not completely eliminated, the abnormal phenomenon will reappear during the reset process as the ammonia flow recovers. Step-by-step verification can detect and stop the reset early when the abnormality begins to reappear, preventing the system from re-entering the fault state after full recovery. Each step increases the opening by only 2% to 5%, limiting the extent of any recurrence of the abnormality to a very small range and preventing new safety risks. When the ammonia-side regulating valve opening recovers to the target opening value calculated by the concentration setpoint tracking logic, the reset process is complete, the controller switches the control mode back to normal concentration tracking control, and the entire safety isolation and recovery process ends.
[0113] Example 10
[0114] This embodiment corresponds to claim 10, describing the composition and structure of the liquid ammonia preparation ammonia concentration control system for implementing the above method. (Refer to...) Figure 10 This embodiment provides a liquid ammonia preparation ammonia concentration control system, including an ammonia supply unit, a pressure acquisition unit, a water distribution unit, a mixing unit, a concentration detection unit, and a control unit.
[0115] The ammonia supply unit includes a liquid ammonia storage tank and an ammonia-side regulating valve installed on the liquid ammonia delivery pipeline. The liquid ammonia storage tank is a pressure vessel that stores liquid ammonia and drives its flow through the delivery pipeline via its own saturated vapor pressure. The ammonia-side regulating valve, installed on the liquid ammonia delivery pipeline, is a pneumatic diaphragm valve or an electric regulating valve, capable of regulating the flow from fully open to fully closed with a total stroke action time of no more than 2 seconds. During normal operation, the ammonia-side regulating valve continuously regulates the ammonia flow rate upon receiving opening commands from the control unit, and simultaneously performs gradual shut-off until fully closed in a safety isolation mode. An ammonia-side mass flow meter is also installed on the liquid ammonia delivery pipeline, measuring the mass flow rate of liquid ammonia using the Coriolis force principle.
[0116] The pressure acquisition unit includes a pressure transmitter installed on the liquid ammonia delivery pipeline. The pressure transmitter is mounted on the pipe section downstream of the ammonia-side regulating valve and between the inlet of the mixing unit. Its measurement range covers 0-2.5 MPa, with an accuracy class of 0.25. It outputs a 4-20 mA standard current signal or digital communication signal to the control unit. The pressure transmitter's sampling rate is no less than 10 times per second to meet the control unit's time resolution requirements for calculating the pressure change rate.
[0117] The water distribution unit includes a water-side regulating valve installed on the process water pipeline. This water-side regulating valve is either a pneumatic diaphragm regulating valve or an electric regulating valve, installed on the process water supply pipeline to regulate the flow rate of process water entering the mixing unit. A water-side flow meter is also installed on the process water pipeline to monitor the water flow rate. The water-side regulating valve receives opening commands from the control unit, participates in concentration ratio adjustment in normal mode, and increases its opening in pressure coupling mode upon receiving pressure coupling commands.
[0118] The mixing unit is connected to both the liquid ammonia delivery pipeline and the process water pipeline, and is used for the contact mixing of ammonia and process water to generate ammonia water. The mixing unit can be a static mixer, a jet mixer, or a mixing tank with a stirring device. Its internal design should ensure sufficient contact and efficient mass transfer between liquid ammonia and process water. The mixing unit has a finished ammonia water outlet, through which the generated ammonia water is sent to downstream processes or storage tanks via an output pipeline.
[0119] The concentration detection unit includes an online concentration detection device and a mass flow meter installed on the finished ammonia water output pipeline. The online concentration detection device continuously measures the mass fraction of ammonia in the finished ammonia water using the refractive index method, density method, or ultrasonic method, with a response time of no more than 2 seconds and a measurement accuracy of no less than 0.1% mass fraction. The mass flow meter is installed on the finished product output pipeline near the concentration detection device and measures the mass flow rate of the finished ammonia water using the Coriolis force principle. Together, these two devices can calculate the mass of ammonia flowing out of the system per unit time.
[0120] The control unit is connected to the pressure transmitter, ammonia-side regulating valve, water-side regulating valve, online concentration detection device, ammonia-side mass flow meter, and finished product-side mass flow meter via signal lines or industrial communication bus. The control unit stores a normal operating baseline pressure value, which is automatically obtained by the control unit from the time-averaged values of the pipeline pressure after the system has been debugged and entered steady-state concentration control operation.
[0121] The control program running inside the control unit is configured to perform the following functions:
[0122] 1. Calculate the pressure change rate based on the pressure signal output by the pressure transmitter, and simultaneously calculate the difference between the current pressure value and the normal operating reference pressure value as the current pressure deviation value. The pressure change rate and the current pressure deviation value are weighted and summed to obtain a weighted result. After comparing with the preset threshold, a pressure coupling command is generated and output to the ammonia-side regulating valve and the water-side regulating valve.
[0123] 2. Based on the ammonia input mass flow rate output by the ammonia-side mass flow meter, the finished product output mass flow rate output by the finished product mass flow meter, and the ammonia mass fraction output by the online concentration detection device, the mass conservation difference is continuously calculated, and the presence of leakage is determined after sliding mean filtering and time window judgment.
[0124] 3. When the leakage criterion is met, a gradual shut-off command is sent to the ammonia-side regulating valve to complete the safety isolation;
[0125] 4. Perform automatic recovery assessment and gradual reset after safe isolation. The control unit can be implemented using a programmable logic controller or a distributed control system.
[0126] Example 11
[0127] This embodiment is a verification experiment, in which the method of the present invention is compared and verified with the existing technical solutions using a pilot device for preparing ammonia water from liquid ammonia.
[0128] The experimental setup is configured as follows: a liquid ammonia storage tank with a volume of 1 cubic meter and a working pressure of 0.8 MPa - 1.2 MPa; a liquid ammonia delivery pipeline with a nominal diameter of 25 mm and a design pressure of 2.5 MPa; a DN25 pneumatic diaphragm regulating valve on the ammonia side with a full-stroke action time of 1.5 seconds; a pressure transmitter with a range of 0-2.5 MPa and an accuracy of 0.25 grade; a static mixer with a volume of 5 liters; a target concentration of 20% mass fraction for the finished ammonia solution; Coriolis mass flow meters with an accuracy of 0.1% on both the ammonia and finished product sides; and an online concentration detection device using the refractive index method with an accuracy of 0.05% mass fraction and a response time of 1.5 seconds. The control unit uses a programmable logic controller with a program scan cycle of 100 milliseconds.
[0129] Comparison Scheme A is the existing technical solution, which adds one safety valve, one emergency shut-off valve and one ammonia leak detection linkage system to the above device. The safety valve is set at 1.8 MPa, the emergency shut-off valve is triggered at 1.6 MPa, and the leak detection alarm concentration is 25 ppm.
[0130] Comparative scheme B, which is the scheme of this invention, does not install safety valves, emergency shut-off valves, or leakage detection linkage systems. Safety protection is achieved solely through pressure-flow cross-coupling regulation logic and mass conservation check leakage judgment logic operating within the control unit. The rate weighting coefficient α is set to 8 seconds, the pressure weighting coefficient β is set to 1 (dimensionless), the preset threshold is set to 0.15 MPa, and the normal operating reference pressure is taken as the time average of the pipeline pressure over one hour of steady-state system operation, which is 0.95 MPa. The ammonia-side gain coefficient K... a The water-side gain coefficient K is set to 120% / MPa. w The setting is 60% / MPa. Under this setting, the pressure deviation value fluctuates within ±0.02 MPa during normal operation, the pressure change rate fluctuates within ±0.005 MPa per second, and the normal fluctuation range of the weighted result is approximately ±0.06 MPa, which is significantly lower than the preset threshold of 0.15 MPa and will not cause false triggering.
[0131] The allowable deviation band is set to 2% of the ammonia flow metering range, i.e., 1.2 kg / h. The moving average filter window length is 5 seconds, i.e., 50 sampling points. The leak detection time window is 15 seconds. The gradual shut-off rate is 8% of the full stroke.
[0132] like Figure 11 , Figure 12 As shown:
[0133] Experiment 1: Comparison of Overpressure Suppression Capabilities. The rapid increase in liquid ammonia pressure caused by a disturbance in the operating condition was simulated by rapidly increasing the opening of the tank outlet valve upstream of the ammonia-side regulating valve. The disturbance introduction rate was 0.05 MPa per second.
[0134] Experimental results for Scheme A: The pipeline pressure continuously increased from the normal operating pressure of 0.95 MPa, reaching the emergency shut-off valve trigger pressure of 1.6 MPa at 12.5 seconds. The emergency shut-off valve activated and closed the pipeline. From the start of the disturbance to the completion of the protection, it took 12.5 seconds, and the system completely shut down. The peak pipeline pressure reached 1.63 MPa.
[0135] Experimental results for Scheme B: After the disturbance was introduced, the controller detected a positive pressure change rate and a weighted result exceeding the preset threshold within 0.3 seconds. It immediately began to reduce the opening of the ammonia-side regulating valve and increase the opening of the water-side regulating valve. The pipeline pressure reached a peak of 1.08 MPa at 1.8 seconds and then began to decline, returning to the normal operating range at 5.2 seconds. The system remained operational throughout the entire process. The concentration of the finished ammonia solution briefly decreased from 20% to 18.5% during the intervention period, recovering to the 20% set value at 15 seconds.
[0136] Comparison conclusions: Scheme B's peak pressure was 1.08 MPa, only 0.13 MPa higher than the normal value; Scheme A's peak pressure was 1.63 MPa, 0.68 MPa higher than the normal value. Scheme B's protection response time was 0.3 seconds, while Scheme A's was 12.5 seconds. Scheme B resulted in no system shutdown, while Scheme A caused a complete shutdown.
[0137] Experiment 2: Comparison of Leak Detection Capabilities. A leak point was artificially created at the flange connection between the mixing unit and the finished product output pipeline, with a leakage rate of approximately 1.8 kg of ammonia per hour.
[0138] Experimental results for Scheme A: The ambient ammonia concentration sensor was installed 1.5 meters away from the leak point. 35 seconds after the leak began, the sensor reading reached the 25ppm alarm threshold, triggering the shut-off valve to close the ammonia feed. The entire process, from the leak's occurrence to the protection's completion, took 35 seconds, during which approximately 17.5 grams of ammonia leaked.
[0139] Experimental results for Scheme B: After the leak began, the controller continuously calculated the mass conservation difference. A leak rate of 1.8 kg / h increased the difference to approximately 1.8 kg / h, exceeding the allowable deviation band half-width of 1.2 kg / h. After moving average filtering and a 15-second time window, the controller determined that the leak had occurred at 18 seconds after it began and started a gradual shutdown. The ammonia-side regulating valve was completely closed at 30 seconds. The entire process from the leak's occurrence to isolation completion took 30 seconds, during which approximately 15 grams of ammonia were leaked.
[0140] Comparison results: Solution B has a leak detection time of 18 seconds, while Solution A takes 35 seconds. The cumulative leak amount of Solution B is approximately 15 grams, while that of Solution A is approximately 17.5 grams. Solution B requires no environmental sensors and is unaffected by airflow and sensor calibration drift.
[0141] Experiment 3: Comparison of Malfunction Rates. During a continuous 72-hour normal operation test, common industrial disturbances such as ambient temperature fluctuations and pipeline vibrations were artificially introduced.
[0142] Experimental results for Scheme A: Within 72 hours, the safety valve malfunctioned 3 times due to transient pressure fluctuations, and the leakage linkage system falsely alarmed 2 times due to environmental interference, resulting in a total of 5 unnecessary shutdowns with a cumulative downtime of 4.2 hours. On average, each time the system was restored, it took about 50 minutes for the operator to be present to confirm the reset.
[0143] Experimental results for Scheme B: The pressure coupling command was triggered 7 times within 72 hours, each lasting 3-12 seconds before automatically returning to normal concentration control; the system did not shut down during the entire process. The mass conservation difference briefly exceeded the allowable deviation range twice due to flow metering fluctuations, but after moving average filtering, it did not exceed the limit and did not last for the 15-second time window, thus not triggering a leak detection. There were zero erroneous shutdowns within 72 hours.
[0144] Comparison conclusions: Option A experiences 5 unintended shutdowns within 72 hours, with a total downtime of 4.2 hours. Option B experiences 0 unintended shutdowns within 72 hours, with a total downtime of 0 hours. The system availability of Option B is 100%, while that of Option A is 94.2%.
[0145] Experiment 4: Comparison of Automatic Recovery Capabilities. After the leak isolation in Experiment 2 was completed, the leak point was repaired and the system recovery process was observed.
[0146] Experimental results for Scheme A: After the leak point was repaired, the operator arrived on-site to confirm the repair was complete, manually reset the emergency shut-off valve and the linkage system, and restarted the equipment. The time from repair completion to restoration of normal operation was 38 minutes.
[0147] Experimental results for Scheme B: After the leak was repaired, the pipeline pressure naturally stabilized. The controller detected a stable pressure trend and the mass conservation difference returned to the deviation band. The confirmation time was set to 120 seconds. After the 120-second confirmation condition was continuously met, the controller automatically began a gradual reset. The reset process proceeded at a pace of 3% opening per step, with 10 seconds of observation per step, for a total of approximately 12 steps. From the completion of the repair to the complete restoration of normal concentration control operation, the entire process took approximately 4.5 minutes, requiring no manual intervention.
[0148] Comparison conclusion: Solution B has a recovery time of 4.5 minutes and is fully automatic, while Solution A has a recovery time of 38 minutes and requires manual intervention.
[0149] The above are preferred embodiments of the present invention and are not intended to limit the technical solutions of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A concentration control method for preparing aqueous ammonia from liquid ammonia, characterized by, include: Liquid ammonia is delivered to the mixing unit via an ammonia-side regulating valve, and the pipeline pressure transmitter collects the ammonia-side pipeline pressure value in real time and calculates the rate of pressure change. The controller generates a pressure coupling command based on the weighted result of the pressure change rate and the current pressure deviation value. When the weighted result exceeds a preset threshold, it drives the ammonia-side regulating valve to reduce its opening and simultaneously drives the water-side regulating valve to increase its opening, thereby actively constraining the pipeline pressure within a safe envelope. Ammonia and process water are mixed in the mixing unit to generate ammonia water, and the online concentration detection device obtains the concentration value of the finished ammonia water in real time. The controller continuously calculates the difference between the mass flow rate of ammonia input and the product of the mass flow rate of finished ammonia water output and the concentration value. When the difference continuously exceeds the allowable deviation range, it is determined that there is a leak in the system. When the leakage criterion is met, the controller performs a gradual shutdown through the ammonia-side regulating valve until it is completely shut off, thus completing the safety isolation.
2. The method of claim 1, wherein, The weighted result is generated by multiplying the pressure change rate by a rate weighting coefficient and summing the current pressure deviation value by a pressure weighting coefficient. The product of the rate weighting coefficient and the pressure change rate contributes more to the weighted result than the product of the pressure weighting coefficient and the current pressure deviation value, thus prioritizing the controller's response to the pressure rise trend over its response to the degree of pressure deviation. The normal operating reference pressure value is determined based on the statistical average of pipeline pressure during system operation in steady-state concentration control mode.
3. The method of claim 2, wherein, The execution priority of the pressure coupling command is higher than that of the concentration setpoint tracking command; when the pressure coupling command takes effect, the controller suspends the concentration setpoint tracking and transfers the opening control of the ammonia-side regulating valve and the water-side regulating valve to the pressure coupling regulation logic.
4. The method of claim 3, wherein, When the pipeline pressure returns to the safe range and the rate of pressure change drops to zero or a negative value, the controller automatically returns the control of the opening of the ammonia-side regulating valve and the water-side regulating valve to the concentration setpoint tracking logic, and gradually adjusts the valve opening to the target value required for the concentration ratio.
5. The method of claim 1, wherein, The difference is calculated according to the following relationship: Δ = NH3,in - sol,out ×C out wherein, NH3,in is the ammonia input mass flow measured by the ammonia side mass flow meter, sol,out is the total output mass flow of the ammonia water solution measured by the mass flow meter on the output pipeline of the finished ammonia water, out is the mass fraction of ammonia in the finished ammonia water obtained by the online concentration detection device.
6. The method according to claim 5, characterized in that, The condition for determining that the system has a leak is: the difference continuously exceeds the allowable deviation range within a continuous preset time window, and the filter result still meets the over-limit condition after the controller performs sliding average filtering on the difference to eliminate transient deviations caused by flow metering fluctuations and concentration detection response delays.
7. The method according to claim 6, characterized in that, The gradual shutdown is executed as follows: the controller gradually reduces the opening of the ammonia-side regulating valve at a preset rate until it is fully closed, while keeping the water-side regulating valve open so that process water continues to flow through the mixing unit to dilute and flush the residual ammonia in the pipeline.
8. The method according to claim 1, characterized in that, It also includes an automatic recovery assessment step: after the safety isolation is completed, the controller continuously monitors the pipeline pressure trend and the difference change. When the pipeline pressure stabilizes within the normal operating range and the difference returns to within the allowable deviation range and continues to reach the preset confirmation time, it is determined that the abnormality has been eliminated.
9. The method according to claim 8, characterized in that, After the determination that the abnormality has been eliminated is established, the controller performs a gradual reset: gradually increasing the opening of the ammonia-side regulating valve at a preset rate, and re-verifying whether the pipeline pressure and the difference remain within the normal range after each step of the opening increase. Only after confirming that it is normal will the next step of opening increase be performed until the normal concentration control operation state is restored.
10. A liquid ammonia preparation ammonia concentration control system for implementing the method of any one of claims 1-9, characterized in that, include: The ammonia supply unit includes a liquid ammonia storage tank and an ammonia-side regulating valve installed on the liquid ammonia delivery pipeline, which is used to supply liquid ammonia to the mixing unit and control the ammonia flow rate by adjusting the opening degree of the ammonia-side regulating valve. The pressure acquisition unit includes a pressure transmitter installed on the liquid ammonia delivery pipeline, which is used to acquire the pipeline pressure value in real time and output the pressure signal to the control unit. The water distribution unit includes a water-side regulating valve installed on the process water pipeline for regulating the flow rate of process water entering the mixing unit; The mixing unit is connected to the liquid ammonia delivery pipeline and the process water pipeline respectively, and is used for contact mixing of ammonia and process water to generate ammonia water; The concentration detection unit includes an online concentration detection device and a mass flow meter installed on the finished ammonia water output pipeline, used to obtain the concentration value of the finished ammonia water and the output mass flow rate; The control unit, which is connected to the pressure transmitter, the ammonia-side regulating valve, the water-side regulating valve, the online concentration detection device, and the mass flow meter, is configured to: perform pressure-flow cross-coupling regulation on the ammonia-side regulating valve and the water-side regulating valve based on the weighted result of the pressure change rate signal and the pipeline pressure value; perform mass conservation check leakage judgment based on the difference between the ammonia-side input mass flow rate and the finished product output ammonia-containing mass flow rate; and complete safety isolation through the ammonia-side regulating valve when the leakage criterion is met.
