GRINS-0.8.0
|
#include <average_nusselt_number.h>
Public Member Functions | |
AverageNusseltNumber (const std::string &qoi_name) | |
virtual | ~AverageNusseltNumber () |
virtual QoIBase * | clone () const |
Clone this QoI. More... | |
virtual bool | assemble_on_interior () const |
Does the QoI need an element interior assembly loop? More... | |
virtual bool | assemble_on_sides () const |
Does the QoI need a domain boundary assembly loop? 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 | init (const GetPot &input, const MultiphysicsSystem &system, unsigned int qoi_num) |
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) |
Public Member Functions inherited from GRINS::QoIBase | |
QoIBase (const std::string &qoi_name) | |
virtual | ~QoIBase () |
virtual void | reinit (MultiphysicsSystem &) |
Reinitialize QoI. More... | |
virtual void | element_qoi (AssemblyContext &, const unsigned int) |
Compute the qoi value for element interiors. More... | |
virtual void | element_qoi_derivative (AssemblyContext &, const unsigned int) |
Compute the qoi derivative with respect to the solution on element interiors. 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... | |
Public Member Functions inherited from GRINS::ParameterUser | |
ParameterUser (const std::string &user_name) | |
virtual | ~ParameterUser () |
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 | set_parameter (libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | set_parameter (libMesh::ParsedFEMFunction< libMesh::Number > &func, const GetPot &input, const std::string &func_param_name, const std::string ¶m_default) |
Each subclass can simultaneously read a parsed function from. More... | |
virtual void | move_parameter (const libMesh::Number &old_parameter, libMesh::Number &new_parameter) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &old_func, libMesh::ParsedFunction< libMesh::Number, libMesh::Gradient > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | move_parameter (const libMesh::ParsedFEMFunction< libMesh::Number > &old_func, libMesh::ParsedFEMFunction< libMesh::Number > &new_func) |
When cloning an object, we need to update parameter pointers. More... | |
virtual void | register_parameter (const std::string ¶m_name, libMesh::ParameterMultiAccessor< libMesh::Number > ¶m_pointer) const |
Each subclass will register its copy of an independent. More... | |
Protected Member Functions | |
void | parse_thermal_conductivity (const GetPot &input) |
Protected Attributes | |
libMesh::Real | _k |
Thermal conductivity. More... | |
const PrimitiveTempFEVariables * | _temp_vars |
std::set< libMesh::boundary_id_type > | _bc_ids |
List of boundary ids for which we want to compute this QoI. More... | |
libMesh::Real | _scaling |
Scaling constant. More... | |
Protected Attributes inherited from GRINS::QoIBase | |
std::string | _qoi_name |
libMesh::Number | _qoi_value |
Private Member Functions | |
AverageNusseltNumber () | |
Additional Inherited Members | |
Static Public Attributes inherited from GRINS::ParameterUser | |
static std::string | zero_vector_function = std::string("{0}") |
A parseable function string with LIBMESH_DIM components, all 0. More... | |
Definition at line 37 of file average_nusselt_number.h.
GRINS::AverageNusseltNumber::AverageNusseltNumber | ( | const std::string & | qoi_name | ) |
Definition at line 44 of file average_nusselt_number.C.
|
virtual |
Definition at line 50 of file average_nusselt_number.C.
|
private |
Referenced by clone().
|
inlinevirtual |
Does the QoI need an element interior assembly loop?
This is pure virtual to force to user to specify.
Implements GRINS::QoIBase.
Definition at line 85 of file average_nusselt_number.h.
|
inlinevirtual |
Does the QoI need a domain boundary assembly loop?
This is pure virtual to force to user to specify.
Implements GRINS::QoIBase.
Definition at line 91 of file average_nusselt_number.h.
|
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.
Implements GRINS::QoIBase.
Definition at line 55 of file average_nusselt_number.C.
References _k, _scaling, AverageNusseltNumber(), and GRINS::ParameterUser::move_parameter().
|
virtual |
Method to allow QoI to cache any system information needed for QoI calculation, for example, solution variable indices.
Reimplemented from GRINS::QoIBase.
Definition at line 64 of file average_nusselt_number.C.
References GRINS::VariablesParsing::QOI, and GRINS::VariablesParsing::temp_variable_name().
|
virtual |
Reimplemented from GRINS::QoIBase.
Definition at line 99 of file average_nusselt_number.C.
References _temp_vars, and GRINS::PrimitiveTempFEVariables::T().
|
protected |
Definition at line 201 of file average_nusselt_number.C.
References _k, GRINS::MaterialsParsing::dep_input_warning(), GRINS::MaterialsParsing::duplicate_input_test(), and GRINS::ParameterUser::set_parameter().
|
virtual |
Compute the qoi value on the domain boundary.
Override this method if your QoI is defined on the domain boundary
Reimplemented from GRINS::QoIBase.
Definition at line 111 of file average_nusselt_number.C.
References _bc_ids, _k, _scaling, _temp_vars, and GRINS::PrimitiveTempFEVariables::T().
|
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 from GRINS::QoIBase.
Definition at line 152 of file average_nusselt_number.C.
References _bc_ids, _k, _scaling, _temp_vars, and GRINS::PrimitiveTempFEVariables::T().
|
protected |
List of boundary ids for which we want to compute this QoI.
Definition at line 73 of file average_nusselt_number.h.
Referenced by side_qoi(), and side_qoi_derivative().
|
protected |
Thermal conductivity.
Definition at line 68 of file average_nusselt_number.h.
Referenced by clone(), parse_thermal_conductivity(), side_qoi(), and side_qoi_derivative().
|
protected |
Scaling constant.
Definition at line 76 of file average_nusselt_number.h.
Referenced by clone(), side_qoi(), and side_qoi_derivative().
|
protected |
Definition at line 70 of file average_nusselt_number.h.
Referenced by init_context(), side_qoi(), and side_qoi_derivative().