ADCoupledPressureIncompressibleMomentumSPScalarKernel

Overview

This class derives from ADIncompressibleMomentumSPBase and implements the steady-state residual of the momentum equation for the Path-integrated incompressible flow model, the negative of the right-hand side of Path-Integrated Incompressible Flow Model, Eq. (4), normalized by the inertia scale defined below so that the time derivative term has unit coefficient. It requires a coupled variable characteristic mass flow rate and coupled fluid temperature variables for each segment, given as coupled ScalarVariables. It operates on the characteristic pressure drop, :

where is the velocity in segment and is the inertia scale. The density is evaluated at the segment temperature and the reference pressure. Unless "reference_fp" is provided, , which gives and . The friction factor is computed from the segment mass flux as described in the theory manual.

This kernel is intended for the use case of creating a closed loop flow path with one or more complementary instances of ADIncompressibleMomentumSPScalarKernel and potentially a ParsedODEKernel defining the relationship between mass flow rates in the different flow paths. Thereby creating a closed system of equations for mass flow rates and characteristic pressure drop. Please note, due to the intended use case where this kernel and complementary instances of ADIncompressibleMomentumSPScalarKernel share mass flow rate information and an equal, but opposite pressure gradient, the sign of the pressure gradient term in the residual is opposite that of the ADIncompressibleMomentumSPScalarKernel. Furthermore, this kernel is steady-state by default. A transient use case also necessitates a CoupledODETimeDerivative, which includes the time derivative of a coupled variable, , with being the coupled reference mass flow rate, which adds the time derivative of the mass flow rate to the residual.

As a reminder, the system of variables should be defined with the "family" attribute set to SCALAR for each variable.

Input Parameters

  • fpFluid properties user object(s). Supply either one (applied to all segments) or one per segment.

    C++ Type:std::vector<UserObjectName>

    Controllable:No

    Description:Fluid properties user object(s). Supply either one (applied to all segments) or one per segment.

  • reference_pressuresystem reference pressure [Pa]. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:MooseFunctorName

    Unit:(no unit assumed)

    Controllable:No

    Description:system reference pressure [Pa]. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • variableThe name of the variable that this residual object operates on

    C++ Type:NonlinearVariableName

    Unit:(no unit assumed)

    Controllable:No

    Description:The name of the variable that this residual object operates on

Required Parameters

  • areasComponent flow areas per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:std::vector<MooseFunctorName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Component flow areas per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • coupled_mass_flow_ratecoupled_mass_flow_rate. Takes a scalar variable name

    C++ Type:std::vector<VariableName>

    Unit:(no unit assumed)

    Controllable:No

    Description:coupled_mass_flow_rate. Takes a scalar variable name

  • forms_lossesForms loss coefficients per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:std::vector<MooseFunctorName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Forms loss coefficients per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • g9.80665Gravitational acceleration [m/s^2]. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    Default:9.80665

    C++ Type:MooseFunctorName

    Unit:(no unit assumed)

    Controllable:No

    Description:Gravitational acceleration [m/s^2]. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • height_changesHeight change from inlet to outlet of each segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:std::vector<MooseFunctorName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Height change from inlet to outlet of each segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • is_implicitTrueWhether an explicit (previous value calculation) or implicit (current value) is used

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Whether an explicit (previous value calculation) or implicit (current value) is used

  • lengthsComponent flow lengths per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:std::vector<MooseFunctorName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Component flow lengths per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • perimetersComponent flow perimeters per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:std::vector<MooseFunctorName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Component flow perimeters per segment. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • pump_pressuresPump pressure gains per segment [Pa]. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:std::vector<MooseFunctorName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Pump pressure gains per segment [Pa]. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • reference_fpFluid properties of the liquid phase for draining problems.

    C++ Type:UserObjectName

    Controllable:No

    Description:Fluid properties of the liquid phase for draining problems.

  • roughnessesComponent wall roughnesses per segment [m]. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

    C++ Type:std::vector<MooseFunctorName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Component wall roughnesses per segment [m]. Takes a vector of functors. A functor is any of the following: a variable, a functor material property, a function, a postprocessor or a number.

  • temperaturesFluid temperature in each segment of this component. Takes a list of scalar variable names

    C++ Type:std::vector<VariableName>

    Unit:(no unit assumed)

    Controllable:No

    Description:Fluid temperature in each segment of this component. Takes a list of scalar variable names

Optional Parameters

  • absolute_value_vector_tagsThe tags for the vectors this residual object should fill with the absolute value of the residual contribution

    C++ Type:std::vector<TagName>

    Controllable:No

    Description:The tags for the vectors this residual object should fill with the absolute value of the residual contribution

  • extra_matrix_tagsThe extra tags for the matrices this Kernel should fill

    C++ Type:std::vector<TagName>

    Controllable:No

    Description:The extra tags for the matrices this Kernel should fill

  • extra_vector_tagsThe extra tags for the vectors this Kernel should fill

    C++ Type:std::vector<TagName>

    Controllable:No

    Description:The extra tags for the vectors this Kernel should fill

  • matrix_onlyFalseWhether this object is only doing assembly to matrices (no vectors)

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Whether this object is only doing assembly to matrices (no vectors)

  • matrix_tagssystemThe tag for the matrices this Kernel should fill

    Default:system

    C++ Type:MultiMooseEnum

    Options:nontime, system

    Controllable:No

    Description:The tag for the matrices this Kernel should fill

  • vector_tagsnontimeThe tag for the vectors this Kernel should fill

    Default:nontime

    C++ Type:MultiMooseEnum

    Options:nontime, time

    Controllable:No

    Description:The tag for the vectors this Kernel should fill

Contribution To Tagged Field Data 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.

  • implicitTrueDetermines whether this object is calculated using an implicit or explicit form

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Determines whether this object is calculated using an implicit or explicit form

  • seed0The seed for the master random number generator

    Default:0

    C++ Type:unsigned int

    Controllable:No

    Description:The seed for the master random number generator

  • 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

Input Files