https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADSpecificImpulse1Phase.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
13
16
22{
23public:
25
26 virtual void threadJoin(const UserObject & y) override;
27 virtual void execute() override;
28 virtual void initialize() override;
29 virtual void finalize() override;
30
31protected:
32 virtual Real getValue() const override;
33
35 const unsigned int _n_components;
37 std::vector<const ADVariableValue *> _U;
39 const std::string & _boundary_name;
41 const std::string _boundary_uo_name;
45 const Real _p_exit;
57 const Real _tol;
59 const unsigned int _max_nit = 100;
61 const bool _cumulative;
66
70 Real _thrust;
71
73 Real _value;
74
75public:
77};
const std::vector< double > y
A base class for computing/caching fluxes at boundaries.
Estimates specific impulse from fluid state at the boundary.
const unsigned int _n_components
Number of components in the solution vector used to compute the flux.
const Real _p_exit
the outlet pressure, user supplied value
std::vector< const ADVariableValue * > _U
Variables to pass to boundary flux user object, in the correct order.
virtual Real getValue() const override
const SinglePhaseFluidProperties & _fp
fluid property user object
const bool _cumulative
if the specific impulse is accumulated over timesteps
Real _value
The value of this post-processor.
Real _mass_flow_rate
total mass flow rate
Real & _accumulated_mass_flow_rate
accumulated mass flow rate over time
const ADMaterialProperty< Real > & _T
fluid temperature
const ADBoundaryFluxBase & _boundary_uo
Boundary user object.
const std::string _boundary_uo_name
Boundary user object name.
const ADMaterialProperty< Real > & _e
internal energy
const unsigned int _max_nit
maximum number of iterations for bisection
virtual void execute() override
virtual void finalize() override
const ADMaterialProperty< Real > & _v
specific volume
const std::string & _boundary_name
Boundary component name.
virtual void initialize() override
virtual void threadJoin(const UserObject &y) override
const ADMaterialProperty< Real > & _H
the total enthalpy including mechanical energy
const Real _tol
bisection tolerance
static InputParameters validParams()
Real & _accumulated_thrust
accumulated thrust over time
const InputParameters & parameters() const
Common class for single phase fluid properties.