Panzer
Version of the Day
|
#include <Panzer_STK_ModelEvaluatorFactory.hpp>
Overridden from ParameterListAcceptor | |
void | setParameterList (Teuchos::RCP< Teuchos::ParameterList > const ¶mList) |
Teuchos::RCP< const Teuchos::ParameterList > | getValidParameters () const |
Methods for building the solver | |
void | setNOXObserverFactory (const Teuchos::RCP< const panzer_stk::NOXObserverFactory > &nox_observer_factory) |
template<typename BuilderT > | |
int | addResponse (const std::string &responseName, const std::vector< panzer::WorksetDescriptor > &wkstDesc, const BuilderT &builder) |
void | buildResponses (const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > &cm_factory, const bool write_graphviz_file=false, const std::string &graphviz_file_prefix="") |
Teuchos::RCP < Thyra::ModelEvaluator < ScalarT > > | getResponseOnlyModelEvaluator () |
Teuchos::RCP < Thyra::ModelEvaluator < ScalarT > > | buildResponseOnlyModelEvaluator (const Teuchos::RCP< Thyra::ModelEvaluator< ScalarT > > &thyra_me, const Teuchos::RCP< panzer::GlobalData > &global_data, const Teuchos::Ptr< const panzer_stk::NOXObserverFactory > &in_nox_observer_factory=Teuchos::null) |
Definition at line 78 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
virtual |
Implements Teuchos::ParameterListAcceptor.
Definition at line 91 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
virtual |
Reimplemented from Teuchos::ParameterListAcceptor.
Definition at line 107 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::buildObjects | ( | const Teuchos::RCP< const Teuchos::Comm< int > > & | comm, |
const Teuchos::RCP< panzer::GlobalData > & | global_data, | ||
const Teuchos::RCP< const panzer::EquationSetFactory > & | eqset_factory, | ||
const panzer::BCStrategyFactory & | bc_factory, | ||
const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > & | cm_factory, | ||
bool | meConstructionOn = true |
||
) |
Builds the model evaluators for a panzer assembly.
[in] | comm | (Required) Teuchos communicator. Must be non-null. |
[in] | global_data | (Required) A fully constructed (all members allocated) global data object used to control parameter library and output support. Must be non-null. |
[in] | eqset_factory | (Required) Equation set factory to provide user defined equation sets. |
[in] | bc_factory | (Required) Boundary condition factory to provide user defined boundary conditions. |
[in] | cm_factory | (Required) Closure model factory to provide user defined closure models. |
Definition at line 220 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
Teuchos::RCP< Thyra::ModelEvaluator< ScalarT > > panzer_stk::ModelEvaluatorFactory< ScalarT >::getPhysicsModelEvaluator | ( | ) |
Definition at line 1126 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::setNOXObserverFactory | ( | const Teuchos::RCP< const panzer_stk::NOXObserverFactory > & | nox_observer_factory | ) |
Definition at line 1134 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
int panzer_stk::ModelEvaluatorFactory< ScalarT >::addResponse | ( | const std::string & | responseName, |
const std::vector< panzer::WorksetDescriptor > & | wkstDesc, | ||
const BuilderT & | builder | ||
) |
Definition at line 321 of file Panzer_STK_ModelEvaluatorFactory.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::buildResponses | ( | const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > & | cm_factory, |
const bool | write_graphviz_file = false , |
||
const std::string & | graphviz_file_prefix = "" |
||
) |
Definition at line 1593 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
Teuchos::RCP< Thyra::ModelEvaluator< ScalarT > > panzer_stk::ModelEvaluatorFactory< ScalarT >::getResponseOnlyModelEvaluator | ( | ) |
Definition at line 1154 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
Teuchos::RCP< Thyra::ModelEvaluator< ScalarT > > panzer_stk::ModelEvaluatorFactory< ScalarT >::buildResponseOnlyModelEvaluator | ( | const Teuchos::RCP< Thyra::ModelEvaluator< ScalarT > > & | thyra_me, |
const Teuchos::RCP< panzer::GlobalData > & | global_data, | ||
const Teuchos::Ptr< const panzer_stk::NOXObserverFactory > & | in_nox_observer_factory = Teuchos::null |
||
) |
Definition at line 1164 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::setUserWorksetFactory | ( | Teuchos::RCP< panzer_stk::WorksetFactory > & | user_wkst_factory | ) |
Set user defined workset factory.
Definition at line 1148 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
Teuchos::RCP< panzer::ResponseLibrary< panzer::Traits > > panzer_stk::ModelEvaluatorFactory< ScalarT >::getResponseLibrary | ( | ) |
Definition at line 1265 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
const std::vector< Teuchos::RCP< panzer::PhysicsBlock > > & panzer_stk::ModelEvaluatorFactory< ScalarT >::getPhysicsBlocks | ( | ) | const |
Definition at line 1274 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
inline |
Get mesh object used to build model evaluator.
Definition at line 144 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
inline |
Get global indexer used to build model evaluator.
Definition at line 148 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
inline |
Get connection manager.
Definition at line 152 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
inline |
Is blocked assembly?
Definition at line 156 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
inline |
Get linear object factory used to build model evaluator.
Definition at line 160 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
inline |
Definition at line 163 of file Panzer_STK_ModelEvaluatorFactory.hpp.
Teuchos::RCP< Thyra::ModelEvaluator< double > > panzer_stk::ModelEvaluatorFactory< ScalarT >::cloneWithNewPhysicsBlocks | ( | const Teuchos::RCP< Thyra::LinearOpWithSolveFactoryBase< ScalarT > > & | solverFactory, |
const Teuchos::RCP< Teuchos::ParameterList > & | physics_block_plist, | ||
const Teuchos::RCP< const panzer::EquationSetFactory > & | eqset_factory, | ||
const panzer::BCStrategyFactory & | bc_factory, | ||
const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > & | user_cm_factory, | ||
bool | is_transient, | ||
bool | is_explicit, | ||
const Teuchos::Ptr< const Teuchos::ParameterList > & | bc_list = Teuchos::null , |
||
const Teuchos::RCP< Thyra::ModelEvaluator< ScalarT > > & | physics_me = Teuchos::null |
||
) | const |
Clone the internal model evaluator, but use new physics blocks. Note that the physics blocks must be in some sense compatible with the original set.
Definition at line 1319 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::setupInitialConditions | ( | Thyra::ModelEvaluator< ScalarT > & | model, |
panzer::WorksetContainer & | wkstContainer, | ||
const std::vector< Teuchos::RCP< panzer::PhysicsBlock > > & | physicsBlocks, | ||
const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > & | cm_factory, | ||
const panzer::LinearObjFactory< panzer::Traits > & | lof, | ||
const Teuchos::ParameterList & | closure_pl, | ||
const Teuchos::ParameterList & | initial_cond_pl, | ||
const Teuchos::ParameterList & | user_data_pl, | ||
bool | write_dot_files, | ||
const std::string & | dot_file_prefix | ||
) | const |
Setup the initial conditions in a model evaluator. Note that this is entirely self contained.
Definition at line 848 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::writeInitialConditions | ( | const Thyra::ModelEvaluator< ScalarT > & | model, |
const std::vector< Teuchos::RCP< panzer::PhysicsBlock > > & | physicsBlocks, | ||
const Teuchos::RCP< panzer::WorksetContainer > & | wc, | ||
const Teuchos::RCP< const panzer::GlobalIndexer > & | ugi, | ||
const Teuchos::RCP< const panzer::LinearObjFactory< panzer::Traits > > & | lof, | ||
const Teuchos::RCP< panzer_stk::STK_Interface > & | mesh, | ||
const panzer::ClosureModelFactory_TemplateManager< panzer::Traits > & | cm_factory, | ||
const Teuchos::ParameterList & | closure_model_pl, | ||
const Teuchos::ParameterList & | user_data_pl, | ||
int | workset_size | ||
) | const |
Write the initial conditions to exodus. Note that this is entirely self contained.
Definition at line 918 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
Teuchos::RCP< Thyra::ModelEvaluatorDefaultBase< double > > panzer_stk::ModelEvaluatorFactory< ScalarT >::buildPhysicsModelEvaluator | ( | bool | buildThyraME, |
const Teuchos::RCP< panzer::FieldManagerBuilder > & | fmb, | ||
const Teuchos::RCP< panzer::ResponseLibrary< panzer::Traits > > & | rLibrary, | ||
const Teuchos::RCP< panzer::LinearObjFactory< panzer::Traits > > & | lof, | ||
const std::vector< Teuchos::RCP< Teuchos::Array< std::string > > > & | p_names, | ||
const std::vector< Teuchos::RCP< Teuchos::Array< double > > > & | p_values, | ||
const Teuchos::RCP< Thyra::LinearOpWithSolveFactoryBase< ScalarT > > & | solverFactory, | ||
const Teuchos::RCP< panzer::GlobalData > & | global_data, | ||
bool | is_transient, | ||
double | t_init | ||
) | const |
This method is to assist with construction of the model evaluators.
Definition at line 1457 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
inline |
Definition at line 220 of file Panzer_STK_ModelEvaluatorFactory.hpp.
double panzer_stk::ModelEvaluatorFactory< ScalarT >::getInitialTime | ( | Teuchos::ParameterList & | transient_ic_params, |
const panzer_stk::STK_Interface & | mesh | ||
) | const |
Gets the initial time from either the input parameter list or an exodus file.
[in] | transient_ic_params | ParameterList that determines where to get the initial time value. |
[in] | mesh | STK Mesh database used if the time value should come from the exodus file |
Definition at line 1492 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
Teuchos::RCP< Thyra::LinearOpWithSolveFactoryBase< double > > panzer_stk::ModelEvaluatorFactory< ScalarT >::buildLOWSFactory | ( | bool | blockedAssembly, |
const Teuchos::RCP< const panzer::GlobalIndexer > & | globalIndexer, | ||
const Teuchos::RCP< panzer::ConnManager > & | conn_manager, | ||
const Teuchos::RCP< panzer_stk::STK_Interface > & | mesh, | ||
const Teuchos::RCP< const Teuchos::MpiComm< int > > & | mpi_comm | ||
) | const |
Definition at line 1553 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
inline |
Get the workset container associated with the mesh database.
Definition at line 243 of file Panzer_STK_ModelEvaluatorFactory.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::addUserFieldsToMesh | ( | panzer_stk::STK_Interface & | mesh, |
const Teuchos::ParameterList & | output_list | ||
) | const |
Add the user fields specified by output_list to the mesh.
Definition at line 764 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
Teuchos::RCP< panzer_stk::STK_MeshFactory > panzer_stk::ModelEvaluatorFactory< ScalarT >::buildSTKMeshFactory | ( | const Teuchos::ParameterList & | mesh_params | ) | const |
build STK mesh factory from a mesh parameter list
build STK mesh from a mesh parameter list
Definition at line 964 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
void panzer_stk::ModelEvaluatorFactory< ScalarT >::finalizeMeshConstruction | ( | const STK_MeshFactory & | mesh_factory, |
const std::vector< Teuchos::RCP< panzer::PhysicsBlock > > & | physicsBlocks, | ||
const Teuchos::MpiComm< int > | mpi_comm, | ||
STK_Interface & | mesh | ||
) | const |
Definition at line 1054 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
protected |
Definition at line 1285 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
protected |
Definition at line 1521 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
protected |
Definition at line 1541 of file Panzer_STK_ModelEvaluatorFactory_impl.hpp.
|
private |
Definition at line 292 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 293 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 295 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 296 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 298 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 299 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 300 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 301 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 302 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 303 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 304 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 305 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 306 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 308 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 312 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 313 of file Panzer_STK_ModelEvaluatorFactory.hpp.
|
private |
Definition at line 315 of file Panzer_STK_ModelEvaluatorFactory.hpp.