#include <unsteady_visualization.h>
|
| UnsteadyVisualization (const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD) |
|
| ~UnsteadyVisualization () |
|
virtual void | output_residual (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const unsigned int time_step, const libMesh::Real time) |
|
virtual void | output_residual_sensitivities (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector ¶ms, const unsigned int time_step, const libMesh::Real time) |
|
virtual void | output_adjoint (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const unsigned int time_step, const libMesh::Real time) |
|
virtual void | output_solution_sensitivities (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector ¶ms, const unsigned int time_step, const libMesh::Real time) |
|
| Visualization (const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD) |
|
virtual | ~Visualization () |
|
void | output (SharedPtr< libMesh::EquationSystems > equation_system) |
|
void | output (SharedPtr< libMesh::EquationSystems > equation_system, const unsigned int time_step, const libMesh::Real time) |
|
void | output_residual (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system) |
|
void | output_residual_sensitivities (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector ¶ms) |
|
void | output_adjoint (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system) |
|
void | output_solution_sensitivities (SharedPtr< libMesh::EquationSystems > equation_system, GRINS::MultiphysicsSystem *system, const libMesh::ParameterVector ¶ms) |
|
void | dump_visualization (SharedPtr< libMesh::EquationSystems > equation_system, const std::string &filename_prefix, const libMesh::Real time) |
|
Definition at line 34 of file unsteady_visualization.h.
GRINS::UnsteadyVisualization::UnsteadyVisualization |
( |
const GetPot & |
input, |
|
|
const libMesh::Parallel::Communicator &comm |
LIBMESH_CAN_DEFAULT_TO_COMMWORLD |
|
) |
| |
Definition at line 42 of file unsteady_visualization.C.
Visualization(const GetPot &input, const libMesh::Parallel::Communicator &comm LIBMESH_CAN_DEFAULT_TO_COMMWORLD)
GRINS::UnsteadyVisualization::~UnsteadyVisualization |
( |
| ) |
|
void GRINS::UnsteadyVisualization::output_adjoint |
( |
SharedPtr< libMesh::EquationSystems > |
equation_system, |
|
|
GRINS::MultiphysicsSystem * |
system, |
|
|
const unsigned int |
time_step, |
|
|
const libMesh::Real |
time |
|
) |
| |
|
virtual |
Implements GRINS::Visualization.
Definition at line 128 of file unsteady_visualization.C.
References GRINS::CompositeQoI::get_qoi(), GRINS::CompositeQoI::n_qois(), and GRINS::QoIBase::name().
133 std::stringstream suffix;
136 const libMesh::DifferentiableQoI* raw_qoi = system->get_qoi();
137 const CompositeQoI* qoi =
dynamic_cast<const CompositeQoI*
>( raw_qoi );
139 unsigned int n_qois = qoi->n_qois();
141 for(
unsigned int q = 0; q < n_qois; q++ )
143 libMesh::NumericVector<libMesh::Number>& dual_solution = system->get_adjoint_solution(q);
145 const std::string& qoi_name = qoi->get_qoi(q).name();
147 filename+=
"."+suffix.str();
149 system->solution->swap( dual_solution );
150 equation_system->update();
155 system->solution->swap( dual_solution );
156 equation_system->update();
void dump_visualization(SharedPtr< libMesh::EquationSystems > equation_system, const std::string &filename_prefix, const libMesh::Real time)
std::string _vis_output_file_prefix
void GRINS::UnsteadyVisualization::output_residual |
( |
SharedPtr< libMesh::EquationSystems > |
equation_system, |
|
|
GRINS::MultiphysicsSystem * |
system, |
|
|
const unsigned int |
time_step, |
|
|
const libMesh::Real |
time |
|
) |
| |
|
virtual |
Implements GRINS::Visualization.
Definition at line 55 of file unsteady_visualization.C.
References GRINS::MultiphysicsSystem::assembly().
60 std::stringstream suffix;
65 filename+=
"."+suffix.str();
73 libMesh::TimeSolver* prev_time_solver = system->time_solver.get();
75 libMesh::SteadySolver* steady_solver =
new libMesh::SteadySolver( *(system) );
77 system->time_solver = libMesh::UniquePtr<libMesh::TimeSolver>(steady_solver);
83 system->solution->swap( *(system->rhs) );
85 equation_system->update();
90 system->solution->swap( *(system->rhs) );
91 equation_system->update();
93 system->time_solver.reset(prev_time_solver);
void dump_visualization(SharedPtr< libMesh::EquationSystems > equation_system, const std::string &filename_prefix, const libMesh::Real time)
std::string _vis_output_file_prefix
virtual void assembly(bool get_residual, bool get_jacobian, bool apply_heterogeneous_constraints=false, bool apply_no_constraints=false)
Override FEMSystem::assembly.
void GRINS::UnsteadyVisualization::output_residual_sensitivities |
( |
SharedPtr< libMesh::EquationSystems > |
equation_system, |
|
|
GRINS::MultiphysicsSystem * |
system, |
|
|
const libMesh::ParameterVector & |
params, |
|
|
const unsigned int |
time_step, |
|
|
const libMesh::Real |
time |
|
) |
| |
|
virtual |
Implements GRINS::Visualization.
Definition at line 97 of file unsteady_visualization.C.
103 for (
unsigned int p=0; p != params.size(); ++p)
105 std::stringstream suffix;
108 std::stringstream pstr;
111 std::string filename =
113 pstr.str() +
'.' + suffix.str();
116 system->solution->swap(system->get_sensitivity_rhs(p));
117 equation_system->update();
122 system->solution->swap(system->get_sensitivity_rhs(p));
123 equation_system->update();
void dump_visualization(SharedPtr< libMesh::EquationSystems > equation_system, const std::string &filename_prefix, const libMesh::Real time)
std::string _vis_output_file_prefix
void GRINS::UnsteadyVisualization::output_solution_sensitivities |
( |
SharedPtr< libMesh::EquationSystems > |
equation_system, |
|
|
GRINS::MultiphysicsSystem * |
system, |
|
|
const libMesh::ParameterVector & |
params, |
|
|
const unsigned int |
time_step, |
|
|
const libMesh::Real |
time |
|
) |
| |
|
virtual |
Implements GRINS::Visualization.
Definition at line 161 of file unsteady_visualization.C.
167 for (
unsigned int p=0; p != params.size(); ++p)
169 std::stringstream suffix;
172 std::stringstream pstr;
175 std::string filename =
177 pstr.str() +
'.' + suffix.str();
180 system->solution->swap(system->get_sensitivity_solution(p));
181 equation_system->update();
186 system->solution->swap(system->get_sensitivity_solution(p));
187 equation_system->update();
void dump_visualization(SharedPtr< libMesh::EquationSystems > equation_system, const std::string &filename_prefix, const libMesh::Real time)
std::string _vis_output_file_prefix
The documentation for this class was generated from the following files: