- T_initReservoir initial temperature
C++ Type:Real
Unit:(no unit assumed)
Controllable:No
Description:Reservoir initial temperature
- T_injInjection fluid temperature
C++ Type:Real
Unit:(no unit assumed)
Controllable:No
Description:Injection fluid temperature
- enthalpypostprocessorThe name of the enthalpy postprocessor
C++ Type:PostprocessorName
Unit:(no unit assumed)
Controllable:No
Description:The name of the enthalpy postprocessor
- masspostprocessorThe name of the mass postprocessor
C++ Type:PostprocessorName
Unit:(no unit assumed)
Controllable:No
Description:The name of the mass postprocessor
- timepostprocessorThe name of the timepostprocessor
C++ Type:PostprocessorName
Unit:(no unit assumed)
Controllable:No
Description:The name of the timepostprocessor
PorousFlowTemperatureDropTerminator
Returns 1 once the produced fluid temperature drops by a set percentage or a maximum time is reached
Description
PorousFlowTemperatureDropTerminator reports a 0/1 indicator of whether a produced fluid's temperature has dropped by a set percentage of the way from the reservoir's initial temperature towards the injection temperature. The produced temperature is reconstructed from a specific enthalpy postprocessor (enthalpypostprocessor, in J) and a mass postprocessor (masspostprocessor, in kg) as T_prod = enthalpypostprocessor/masspostprocessor/fluid_specific_heat + T_enthalpy_ref (fluid_specific_heat defaults to 4186 J/(kg K), an approximate specific heat of water, and T_enthalpy_ref defaults to 273.15 K, i.e. the 0 degrees C enthalpy datum; both are exposed as parameters so a different fluid's approximate specific heat and enthalpy reference can be used). T_inj and T_init are required parameters (there is no sensible default), and masspostprocessor reporting 0 (e.g. before any production has occurred) reports the indicator as 0 rather than dividing by zero. The reported value is 1 once
(T_prod - T_init)/(T_inj - T_init) < P_drop/100
and also 1, unconditionally, once the current simulation time (timepostprocessor) reaches max_time, regardless of the temperature drop; this second condition guarantees the terminator eventually fires even if the reservoir is far from equilibrating with the injection temperature. Otherwise the reported value is 0.
This postprocessor only reports the indicator; it does not stop the simulation by itself. To actually terminate the run once the temperature drop criterion is met, pair it with a Terminator [UserObjects] block whose expression tests this postprocessor's value, as shown in the example below.
Example Input Syntax
[Postprocessors<<<{"href": "../../syntax/Postprocessors/index.html"}>>>]
[cur_time]
type = TimePostprocessor<<<{"description": "Reports the current time", "href": "TimePostprocessor.html"}>>>
[]
[enthalpy]
type = FunctionValuePostprocessor<<<{"description": "Computes the value of a supplied function at a single point (scalable)", "href": "FunctionValuePostprocessor.html"}>>>
function<<<{"description": "The function which supplies the postprocessor value."}>>> = enthalpy_fn
[]
[mass]
type = FunctionValuePostprocessor<<<{"description": "Computes the value of a supplied function at a single point (scalable)", "href": "FunctionValuePostprocessor.html"}>>>
function<<<{"description": "The function which supplies the postprocessor value."}>>> = mass_fn
[]
[computed]
type = PorousFlowTemperatureDropTerminator<<<{"description": "Returns 1 once the produced fluid temperature drops by a set percentage or a maximum time is reached", "href": "PorousFlowTemperatureDropTerminator.html"}>>>
enthalpypostprocessor<<<{"description": "The name of the enthalpy postprocessor"}>>> = enthalpy
masspostprocessor<<<{"description": "The name of the mass postprocessor"}>>> = mass
timepostprocessor<<<{"description": "The name of the timepostprocessor"}>>> = cur_time
T_inj<<<{"description": "Injection fluid temperature"}>>> = 100
T_init<<<{"description": "Reservoir initial temperature"}>>> = 0
P_drop<<<{"description": "Percent drop"}>>> = 50
max_time<<<{"description": "The maximum simulation time (s) after which the terminator fires regardless of temperature drop (Default is 315360000, i.e. 10 years)"}>>> = 1e6
fluid_specific_heat<<<{"description": "Fluid specific heat (J/kg/K), used to convert the enthalpy/mass postprocessor ratio into a temperature (Default is 4186, i.e. water)"}>>> = 4000
[]
[exact]
type = FunctionValuePostprocessor<<<{"description": "Computes the value of a supplied function at a single point (scalable)", "href": "FunctionValuePostprocessor.html"}>>>
function<<<{"description": "The function which supplies the postprocessor value."}>>> = exact_fn
[]
[residual]
type = ParsedPostprocessor<<<{"description": "Computes a parsed expression with post-processors", "href": "ParsedPostprocessor.html"}>>>
pp_names<<<{"description": "Post-processors arguments"}>>> = 'computed exact'
expression<<<{"description": "function expression"}>>> = 'abs(computed - exact)'
[]
[](test/tests/postprocessors/porous_flow_temperature_drop_terminator/inp.i)[UserObjects<<<{"href": "../../syntax/UserObjects/index.html"}>>>]
[terminate]
type = Terminator<<<{"description": "Requests termination of the current solve based on the evaluation of a parsed logical expression of the Postprocessor value(s).", "href": "../userobjects/Terminator.html"}>>>
expression<<<{"description": "FParser expression to process Postprocessor values into a boolean value. Termination of the simulation occurs when this returns true."}>>> = 'computed >= 1'
[]
[](test/tests/postprocessors/porous_flow_temperature_drop_terminator/inp.i)Input Parameters
- P_drop0.01Percent drop
Default:0.01
C++ Type:Real
Unit:(no unit assumed)
Controllable:No
Description:Percent drop
- T_enthalpy_ref273.15Enthalpy-datum reference temperature (K) used to convert the enthalpy/mass postprocessor ratio into a temperature (Default is 273.15, i.e. 0 degrees C)
Default:273.15
C++ Type:Real
Unit:(no unit assumed)
Controllable:No
Description:Enthalpy-datum reference temperature (K) used to convert the enthalpy/mass postprocessor ratio into a temperature (Default is 273.15, i.e. 0 degrees C)
- fluid_specific_heat4186Fluid specific heat (J/kg/K), used to convert the enthalpy/mass postprocessor ratio into a temperature (Default is 4186, i.e. water)
Default:4186
C++ Type:Real
Unit:(no unit assumed)
Range:fluid_specific_heat > 0
Controllable:No
Description:Fluid specific heat (J/kg/K), used to convert the enthalpy/mass postprocessor ratio into a temperature (Default is 4186, i.e. water)
- max_time3.1536e+08The maximum simulation time (s) after which the terminator fires regardless of temperature drop (Default is 315360000, i.e. 10 years)
Default:3.1536e+08
C++ Type:Real
Unit:(no unit assumed)
Controllable:No
Description:The maximum simulation time (s) after which the terminator fires regardless of temperature drop (Default is 315360000, i.e. 10 years)
Optional Parameters
- allow_duplicate_execution_on_initialFalseIn the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).
Default:False
C++ Type:bool
Controllable:No
Description:In the case where this UserObject is depended upon by an initial condition, allow it to be executed twice during the initial setup (once before the IC and again after mesh adaptivity (if applicable).
- execute_onTIMESTEP_ENDThe list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
Default:TIMESTEP_END
C++ Type:ExecFlagEnum
Controllable:No
Description:The list of flag(s) indicating when this object should be executed. For a description of each flag, see https://mooseframework.inl.gov/source/interfaces/SetupInterface.html.
- execution_order_group0Execution order groups are executed in increasing order (e.g., the lowest number is executed first). Note that negative group numbers may be used to execute groups before the default (0) group. Please refer to the user object documentation for ordering of user object execution within a group.
Default:0
C++ Type:int
Controllable:No
Description:Execution order groups are executed in increasing order (e.g., the lowest number is executed first). Note that negative group numbers may be used to execute groups before the default (0) group. Please refer to the user object documentation for ordering of user object execution within a group.
- force_postauxFalseForces the UserObject to be executed in POSTAUX
Default:False
C++ Type:bool
Controllable:No
Description:Forces the UserObject to be executed in POSTAUX
- force_preauxFalseForces the UserObject to be executed in PREAUX
Default:False
C++ Type:bool
Controllable:No
Description:Forces the UserObject to be executed in PREAUX
- force_preicFalseForces the UserObject to be executed in PREIC during initial setup
Default:False
C++ Type:bool
Controllable:No
Description:Forces the UserObject to be executed in PREIC during initial setup
Execution Scheduling Parameters
- control_tagsAdds user-defined labels for accessing object parameters via control logic.
C++ Type:std::vector<std::string>
Controllable:No
Description:Adds user-defined labels for accessing object parameters via control logic.
- enableTrueSet the enabled status of the MooseObject.
Default:True
C++ Type:bool
Controllable:Yes
Description:Set the enabled status of the MooseObject.
- outputsVector of output names where you would like to restrict the output of variables(s) associated with this object
C++ Type:std::vector<OutputName>
Controllable:No
Description:Vector of output names where you would like to restrict the output of variables(s) associated with this object
- use_displaced_meshFalseWhether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.
Default:False
C++ Type:bool
Controllable:No
Description:Whether or not this object should use the displaced mesh for computation. Note that in the case this is true but no displacements are provided in the Mesh block the undisplaced mesh will still be used.
Advanced Parameters
- prop_getter_suffixAn optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.
C++ Type:MaterialPropertyName
Unit:(no unit assumed)
Controllable:No
Description:An optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.
- use_interpolated_stateFalseFor the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.
Default:False
C++ Type:bool
Controllable:No
Description:For the old and older state use projected material properties interpolated at the quadrature points. To set up projection use the ProjectedStatefulMaterialStorageAction.