https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SpecificImpulse1Phase.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 VariableValue *> _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.
const InputParameters & parameters() const
Common class for single phase fluid properties.
Estimates specific impulse from fluid state at the boundary.
virtual void threadJoin(const UserObject &y) override
virtual void finalize() override
const Real _tol
bisection tolerance
const MaterialProperty< Real > & _H
the total enthalpy including mechanical energy
const unsigned int _n_components
Number of components in the solution vector used to compute the flux.
const bool _cumulative
if the specific impulse is accumulated over timesteps
const MaterialProperty< Real > & _e
internal energy
const SinglePhaseFluidProperties & _fp
fluid property user object
const std::string & _boundary_name
Boundary component name.
virtual Real getValue() const override
std::vector< const VariableValue * > _U
Variables to pass to boundary flux user object, in the correct order.
Real & _accumulated_mass_flow_rate
accumulated mass flow rate over time
const BoundaryFluxBase & _boundary_uo
Boundary user object.
virtual void initialize() override
Real _mass_flow_rate
total mass flow rate
const MaterialProperty< Real > & _T
fluid temperature
const unsigned int _max_nit
maximum number of iterations for bisection
const std::string _boundary_uo_name
Boundary user object name.
Real _value
The value of this post-processor.
virtual void execute() override
static InputParameters validParams()
const Real _p_exit
the outlet pressure, user supplied value
Real & _accumulated_thrust
accumulated thrust over time
const MaterialProperty< Real > & _v
specific volume