https://mooseframework.inl.gov
MultiAppPositions.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 // Moose includes
13 #include "Positions.h"
14 
19 {
20 public:
23  virtual ~MultiAppPositions() = default;
24 
25  // MultiApp positions are not known at construction
26  void initialize() override;
27 
28  // Since we did not initialize on construction, initialize on setup by default
29  void initialSetup() override
30  {
31  initialize();
32  finalize();
33  }
34 
36  const bool _use_apps_centroid;
37 };
Positions objects are under the hood Reporters.
Definition: Positions.h:20
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
void initialize() override
In charge of computing / loading the positions.
const bool _use_apps_centroid
Whether to use the subapp mesh centroids to compute the positions, further translated by the position...
Positions from all the MultiApps.
static InputParameters validParams()
virtual ~MultiAppPositions()=default
virtual void finalize() override
In charge of reduction across all ranks & sorting for consistent output.
Definition: Positions.C:220
const InputParameters & parameters() const
Get the parameters of the object.
MultiAppPositions(const InputParameters &parameters)