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