https://mooseframework.inl.gov
Loading...
Searching...
No Matches
include
userobjects
MessageFromInput.h
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
10
#pragma once
11
12
#include "
GeneralUserObject.h
"
13
18
class
MessageFromInput
:
public
GeneralUserObject
19
{
20
public
:
21
static
InputParameters
validParams
();
22
23
MessageFromInput
(
const
InputParameters
&
parameters
);
24
virtual
~MessageFromInput
();
25
27
virtual
void
initialize
()
override
{};
28
30
virtual
void
finalize
()
override
{};
31
33
virtual
void
execute
()
override
;
34
35
private
:
37
const
std::string
_input_message
;
38
};
GeneralUserObject.h
GeneralUserObject
Definition
GeneralUserObject.h:26
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition
InputParameters.h:68
MessageFromInput
User object that get a message from an input file and print it out during the simulation.
Definition
MessageFromInput.h:19
MessageFromInput::~MessageFromInput
virtual ~MessageFromInput()
Definition
MessageFromInput.C:38
MessageFromInput::validParams
static InputParameters validParams()
Definition
MessageFromInput.C:17
MessageFromInput::finalize
virtual void finalize() override
Required implementation of a pure virtual function (not used)
Definition
MessageFromInput.h:30
MessageFromInput::initialize
virtual void initialize() override
Required implementation of a pure virtual function (not used)
Definition
MessageFromInput.h:27
MessageFromInput::execute
virtual void execute() override
Print out the message.
Definition
MessageFromInput.C:41
MessageFromInput::_input_message
const std::string _input_message
hold the message from the input file
Definition
MessageFromInput.h:37
MooseBase::parameters
const InputParameters & parameters() const
Get the parameters of the object.
Definition
MooseBase.h:131
Generated on Fri Aug 21 2026 13:33:51 for https://mooseframework.inl.gov by
1.9.8