https://mooseframework.inl.gov
THMOutputVectorVelocityAction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 #include "THMProblem.h"
12 
13 registerMooseAction("ThermalHydraulicsApp",
15  "THM:output_vector_velocity");
16 
19 {
21  params.addClassDescription("Lets the user specify the variable type for the velocity output");
22  params.addParam<bool>(
23  "velocity_as_vector", true, "True for vector-valued velocity, false for scalar velocity.");
24  return params;
25 }
26 
28  : Action(params)
29 {
30 }
31 
32 void
34 {
35  THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get());
36  if (thm_problem)
37  thm_problem->setVectorValuedVelocity(getParam<bool>("velocity_as_vector"));
38 }
Specialization of FEProblem to run with component subsystem.
Definition: THMProblem.h:18
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
registerMooseAction("ThermalHydraulicsApp", THMOutputVectorVelocityAction, "THM:output_vector_velocity")
static InputParameters validParams()
THMOutputVectorVelocityAction(const InputParameters &params)
void setVectorValuedVelocity(bool vector_velocity)
Set if velocity is being output as a vector-valued field.
Definition: Simulation.h:364
void addClassDescription(const std::string &doc_string)
std::shared_ptr< FEProblemBase > & _problem
Action to setup output of vector-valued velocity.