https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13registerMooseAction("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
31
32void
34{
35 THMProblem * thm_problem = dynamic_cast<THMProblem *>(_problem.get());
36 if (thm_problem)
37 thm_problem->setVectorValuedVelocity(getParam<bool>("velocity_as_vector"));
38}
registerMooseAction("ThermalHydraulicsApp", THMOutputVectorVelocityAction, "THM:output_vector_velocity")
static InputParameters validParams()
std::shared_ptr< FEProblemBase > & _problem
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
void setVectorValuedVelocity(bool vector_velocity)
Set if velocity is being output as a vector-valued field.
Definition Simulation.h:364
Action to setup output of vector-valued velocity.
THMOutputVectorVelocityAction(const InputParameters &params)
Specialization of FEProblem to run with component subsystem.
Definition THMProblem.h:19