GRINS-0.6.0
|
#include <qoi_base.h>
Public Member Functions | |
QoIBase (const std::string &qoi_name) | |
virtual | ~QoIBase () |
virtual QoIBase * | clone () const =0 |
Clone this QoI. More... | |
virtual bool | assemble_on_interior () const =0 |
Does the QoI need an element interior assembly loop? More... | |
virtual bool | assemble_on_sides () const =0 |
Does the QoI need a domain boundary assembly loop? More... | |
virtual void | init (const GetPot &input, const MultiphysicsSystem &system) |
Method to allow QoI to cache any system information needed for QoI calculation, for example, solution variable indices. More... | |
virtual void | init_context (AssemblyContext &context) |
virtual void | element_qoi (AssemblyContext &context, const unsigned int qoi_index) |
Compute the qoi value for element interiors. More... | |
virtual void | element_qoi_derivative (AssemblyContext &context, const unsigned int qoi_index) |
Compute the qoi derivative with respect to the solution on element interiors. More... | |
virtual void | side_qoi (AssemblyContext &context, const unsigned int qoi_index) |
Compute the qoi value on the domain boundary. More... | |
virtual void | side_qoi_derivative (AssemblyContext &context, const unsigned int qoi_index) |
Compute the qoi derivative with respect to the solution on the domain boundary. More... | |
virtual void | parallel_op (const libMesh::Parallel::Communicator &communicator, libMesh::Number &sys_qoi, libMesh::Number &local_qoi) |
Call the parallel operation for this QoI and cache the value. More... | |
virtual void | thread_join (libMesh::Number &qoi, const libMesh::Number &other_qoi) |
Call the operation to accumulate this QoI from multiple threads. More... | |
virtual void | output_qoi (std::ostream &out) const |
Basic output for computed QoI's. More... | |
libMesh::Number | value () const |
Returns the current QoI value. More... | |
const std::string & | name () const |
Returns the name of this QoI. More... | |
virtual void | set_parameter (libMesh::Number ¶m_variable, const GetPot &input, const std::string ¶m_name, libMesh::Number param_default) |
Each subclass can simultaneously read a parameter value from. More... | |
virtual void | register_parameter (const std::string ¶m_name, libMesh::ParameterMultiPointer< libMesh::Number > ¶m_pointer) const |
Each subclass will register its copy of an independent. More... | |
Protected Attributes | |
std::string | _qoi_name |
libMesh::Number | _qoi_value |
Definition at line 54 of file qoi_base.h.
GRINS::QoIBase::QoIBase | ( | const std::string & | qoi_name | ) |
Definition at line 39 of file qoi_base.C.
|
virtual |
Definition at line 47 of file qoi_base.C.
|
pure virtual |
Does the QoI need an element interior assembly loop?
This is pure virtual to force to user to specify.
Implemented in GRINS::ParsedInteriorQoI, GRINS::Vorticity, and GRINS::AverageNusseltNumber.
Referenced by GRINS::CompositeQoI::add_qoi().
|
pure virtual |
Does the QoI need a domain boundary assembly loop?
This is pure virtual to force to user to specify.
Implemented in GRINS::ParsedInteriorQoI, GRINS::Vorticity, and GRINS::AverageNusseltNumber.
Referenced by GRINS::CompositeQoI::add_qoi().
|
pure virtual |
Clone this QoI.
We return a raw pointer, but it is expected for the user to take ownership and delete the object when done.
Implemented in GRINS::ParsedInteriorQoI, GRINS::Vorticity, and GRINS::AverageNusseltNumber.
Referenced by GRINS::CompositeQoI::add_qoi().
|
virtual |
Compute the qoi value for element interiors.
Override this method if your QoI is defined on element interiors
Reimplemented in GRINS::Vorticity, and GRINS::ParsedInteriorQoI.
Definition at line 63 of file qoi_base.C.
|
virtual |
Compute the qoi derivative with respect to the solution on element interiors.
Override this method if your QoI is defined on element interiors
Reimplemented in GRINS::Vorticity, and GRINS::ParsedInteriorQoI.
Definition at line 69 of file qoi_base.C.
|
virtual |
Method to allow QoI to cache any system information needed for QoI calculation, for example, solution variable indices.
Reimplemented in GRINS::Vorticity, GRINS::ParsedInteriorQoI, and GRINS::AverageNusseltNumber.
Definition at line 52 of file qoi_base.C.
|
virtual |
Reimplemented in GRINS::Vorticity, GRINS::ParsedInteriorQoI, and GRINS::AverageNusseltNumber.
Definition at line 58 of file qoi_base.C.
|
inline |
Returns the name of this QoI.
Definition at line 143 of file qoi_base.h.
References _qoi_name.
Referenced by GRINS::SteadyVisualization::output_adjoint(), and GRINS::UnsteadyVisualization::output_adjoint().
|
virtual |
Basic output for computed QoI's.
If fancier output is desired, override this method.
Definition at line 107 of file qoi_base.C.
References _qoi_name, and _qoi_value.
|
virtual |
Call the parallel operation for this QoI and cache the value.
By default, this is just a sum. Override if QoI is more complex.
Definition at line 87 of file qoi_base.C.
References _qoi_value.
|
virtualinherited |
Each subclass will register its copy of an independent.
Reimplemented in GRINS::AxisymmetricHeatTransfer< Conductivity >, GRINS::LowMachNavierStokesBase< Viscosity, SpecificHeat, ThermalConductivity >, GRINS::IncompressibleNavierStokesBase< Viscosity >, GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >, GRINS::HeatConduction< Conductivity >, GRINS::HeatTransferBase< Conductivity >, and GRINS::BoussinesqBuoyancyAdjointStabilization< Viscosity >.
Definition at line 50 of file parameter_user.C.
Referenced by GRINS::BoussinesqBuoyancyAdjointStabilization< Viscosity >::register_parameter(), GRINS::HeatTransferBase< Conductivity >::register_parameter(), GRINS::HeatConduction< Conductivity >::register_parameter(), GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >::register_parameter(), GRINS::IncompressibleNavierStokesBase< Viscosity >::register_parameter(), GRINS::LowMachNavierStokesBase< Viscosity, SpecificHeat, ThermalConductivity >::register_parameter(), and GRINS::AxisymmetricHeatTransfer< Conductivity >::register_parameter().
|
virtualinherited |
Each subclass can simultaneously read a parameter value from.
Definition at line 35 of file parameter_user.C.
References GRINS::ParameterUser::_my_name, and GRINS::ParameterUser::_my_parameters.
Referenced by GRINS::AveragedFanAdjointStabilization< Viscosity >::AveragedFanAdjointStabilization(), GRINS::AveragedTurbineAdjointStabilization< Viscosity >::AveragedTurbineAdjointStabilization(), GRINS::BoussinesqBuoyancyAdjointStabilization< Viscosity >::BoussinesqBuoyancyAdjointStabilization(), GRINS::BoussinesqBuoyancyBase::BoussinesqBuoyancyBase(), GRINS::BoussinesqBuoyancySPGSMStabilization< Viscosity >::BoussinesqBuoyancySPGSMStabilization(), GRINS::ConstantConductivity::ConstantConductivity(), GRINS::ConstantPrandtlConductivity::ConstantPrandtlConductivity(), GRINS::ConstantSourceFunction::ConstantSourceFunction(), GRINS::ConstantSourceTerm::ConstantSourceTerm(), GRINS::ConstantSpecificHeat::ConstantSpecificHeat(), GRINS::ConstantViscosity::ConstantViscosity(), GRINS::ElasticCable< StressStrainLaw >::ElasticCable(), GRINS::ElasticCableConstantGravity::ElasticCableConstantGravity(), GRINS::ElasticMembrane< StressStrainLaw >::ElasticMembrane(), GRINS::ElasticMembraneConstantPressure::ElasticMembraneConstantPressure(), GRINS::HeatConduction< Conductivity >::HeatConduction(), GRINS::HeatTransferBase< Conductivity >::HeatTransferBase(), GRINS::IncompressibleNavierStokesBase< Viscosity >::IncompressibleNavierStokesBase(), GRINS::AverageNusseltNumber::init(), GRINS::MooneyRivlin::MooneyRivlin(), GRINS::ReactingLowMachNavierStokesBase< Mixture, Evaluator >::ReactingLowMachNavierStokesBase(), GRINS::HookesLaw1D::read_input_options(), GRINS::HookesLaw::read_input_options(), GRINS::AxisymmetricBoussinesqBuoyancy::read_input_options(), and GRINS::VelocityDragAdjointStabilization< Viscosity >::VelocityDragAdjointStabilization().
|
virtual |
Compute the qoi value on the domain boundary.
Override this method if your QoI is defined on the domain boundary
Reimplemented in GRINS::AverageNusseltNumber.
Definition at line 75 of file qoi_base.C.
|
virtual |
Compute the qoi derivative with respect to the solution on the domain boundary.
Override this method if your QoI is defined on the domain boundary
Reimplemented in GRINS::AverageNusseltNumber.
Definition at line 81 of file qoi_base.C.
|
virtual |
Call the operation to accumulate this QoI from multiple threads.
By default, this is just a sum. Override if QoI is more complex.
Definition at line 100 of file qoi_base.C.
|
inline |
|
protected |
Definition at line 131 of file qoi_base.h.
Referenced by name(), and output_qoi().
|
protected |
Definition at line 133 of file qoi_base.h.
Referenced by output_qoi(), parallel_op(), and value().