Class FieldFunctionGridBased
Defined in File field_function_grid_based.h
Inheritance Relationships
Base Type
public opensn::FieldFunction
(Class FieldFunction)
Class Documentation
-
class FieldFunctionGridBased : public opensn::FieldFunction
Public Types
-
using FFList = std::vector<std::shared_ptr<const FieldFunctionGridBased>>
Public Functions
-
explicit FieldFunctionGridBased(const InputParameters ¶ms)
Creates a field function, filling it with zeros.
Creates a field function with an associated field vector. The field’s data vector is set to the incoming field vector.
Creates a field function where all the values are assigned to the single supplied value.
-
~FieldFunctionGridBased() override = default
-
const SpatialDiscretization &GetSpatialDiscretization() const
Returns the spatial discretization method.
-
std::vector<double> &GetLocalFieldVector()
Returns a reference to the locally stored field data.
-
const std::vector<double> &GetLocalFieldVector() const
Returns a read-only reference to the locally stored field data.
-
std::vector<double> GetGhostedFieldVector() const
Makes a copy of the locally stored data with ghost access.
-
void UpdateFieldVector(const std::vector<double> &field_vector)
Updates the field vector with a local STL vector.
-
void UpdateFieldVector(const Vec &field_vector)
Updates the field vector with a PETSc vector. This only operates locally.
Public Static Functions
-
static InputParameters GetInputParameters()
Export multiple field functions to PVTU.
Protected Attributes
-
std::shared_ptr<SpatialDiscretization> discretization_
-
std::unique_ptr<GhostedParallelSTLVector> ghosted_field_vector_
-
using FFList = std::vector<std::shared_ptr<const FieldFunctionGridBased>>