GRINS-0.8.0
|
#include <vorticity.h>
Public Member Functions | |
Vorticity (const std::string &qoi_name) | |
Constructor. More... | |
virtual | ~Vorticity () |
virtual QoIBase * | clone () const |
Required to provide clone (deep-copy) for adding QoI object to libMesh objects. 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 | init (const GetPot &input, const MultiphysicsSystem &system, unsigned int qoi_num) |
Initialize local variables. More... | |
virtual void | init_context (AssemblyContext &context) |
virtual void | element_qoi (AssemblyContext &context, const unsigned int qoi_index) |
Compute the qoi value. More... | |
virtual void | element_qoi_derivative (AssemblyContext &context, const unsigned int qoi_index) |
Compute the qoi derivative with respect to the solution. More... | |
Public Member Functions inherited from GRINS::QoIBase | |
QoIBase (const std::string &qoi_name) | |
virtual | ~QoIBase () |
virtual void | reinit (MultiphysicsSystem &) |
Reinitialize QoI. More... | |
virtual void | side_qoi (AssemblyContext &, const unsigned int) |
Compute the qoi value on the domain boundary. More... | |
virtual void | side_qoi_derivative (AssemblyContext &, const unsigned int) |
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... | |
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 Attributes | |
const VelocityVariable * | _flow_vars |
std::set< libMesh::subdomain_id_type > | _subdomain_ids |
List of sumdomain ids for which we want to compute this QoI. More... | |
Protected Attributes inherited from GRINS::QoIBase | |
std::string | _qoi_name |
libMesh::Number | _qoi_value |
Private Member Functions | |
Vorticity () | |
User never call default constructor. More... | |
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... | |
Vorticity QoI.
This class implement a vorticity QoI that can be used to both compute QoI values and drive QoI-based adaptive refinement. Currently, this QoI is only implemented in 2D and will error if it detects a three-dimensional problem.
Definition at line 44 of file vorticity.h.
GRINS::Vorticity::Vorticity | ( | const std::string & | qoi_name | ) |
Constructor.
Constructor takes GetPot object to read any input options associated with this QoI
Definition at line 45 of file vorticity.C.
|
virtual |
Definition at line 51 of file vorticity.C.
|
private |
User never call default constructor.
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 98 of file vorticity.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 104 of file vorticity.h.
|
virtual |
Required to provide clone (deep-copy) for adding QoI object to libMesh objects.
Implements GRINS::QoIBase.
Definition at line 56 of file vorticity.C.
References Vorticity().
|
virtual |
Compute the qoi value.
Currently, only implemented for 2D. Assumes that the vorticity will be computed over area of input subdomain id. Vorticity computed as
Reimplemented from GRINS::QoIBase.
Definition at line 100 of file vorticity.C.
References _flow_vars, _subdomain_ids, GRINS::MultcomponentVectorVariable::u(), and GRINS::MultcomponentVectorVariable::v().
|
virtual |
Compute the qoi derivative with respect to the solution.
Currently, only implemented for 2D. Assumes that the vorticity will be computed over area of input subdomain id.
Reimplemented from GRINS::QoIBase.
Definition at line 128 of file vorticity.C.
References _flow_vars, _subdomain_ids, GRINS::MultcomponentVectorVariable::u(), and GRINS::MultcomponentVectorVariable::v().
|
virtual |
Initialize local variables.
Any local variables that need information from libMesh get initialized here. For example, variable indices.
Reimplemented from GRINS::QoIBase.
Definition at line 62 of file vorticity.C.
References GRINS::VariablesParsing::QOI, and GRINS::VariablesParsing::velocity_variable_name().
|
virtual |
Reimplemented from GRINS::QoIBase.
Definition at line 84 of file vorticity.C.
References _flow_vars, GRINS::MultcomponentVectorVariable::u(), and GRINS::MultcomponentVectorVariable::v().
|
protected |
Definition at line 86 of file vorticity.h.
Referenced by element_qoi(), element_qoi_derivative(), and init_context().
|
protected |
List of sumdomain ids for which we want to compute this QoI.
Definition at line 89 of file vorticity.h.
Referenced by element_qoi(), and element_qoi_derivative().