Flow123d
release_3.0.0-968-gc87a28e79
|
Go to the documentation of this file.
18 #ifndef MULTI_FIELD_HH_
19 #define MULTI_FIELD_HH_
24 #include <boost/core/explicit_operator_bool.hpp>
25 #include <boost/format/alt_sstream.hpp>
26 #include <boost/format/alt_sstream_impl.hpp>
27 #include <boost/format/parsing.hpp>
28 #include <boost/optional/optional.hpp>
29 #include <boost/type_index/type_index_facade.hpp>
84 template<
int spacedim,
class Value>
96 <<
"of the MultiField " << EI_MultiFieldName::qval <<
", expected size: " << EI_ExpectedSize::val );
106 bool is_active_field_descriptor(
const Input::Record &in_rec,
const std::string &input_name)
override;
135 IT::Array get_multifield_input_type()
override;
162 void set_mesh(
const Mesh &mesh)
override;
167 void copy_from(
const FieldCommon & other)
override;
172 void field_output(std::shared_ptr<OutputTime> stream)
override;
177 void observe_output(std::shared_ptr<Observe> observe)
override;
182 bool is_constant(
Region reg)
override;
196 std::string get_value_attribute()
const override;
204 inline unsigned int size()
const
205 {
return sub_fields_.size(); }
212 OLD_ASSERT(idx < sub_fields_.size(),
"Index of subfield in MultiField '%s' is out of range.\n", this->input_name().c_str());
213 return sub_fields_[idx];
221 OLD_ASSERT(idx < sub_fields_.size(),
"Index of subfield in MultiField '%s' is out of range.\n", this->input_name().c_str());
222 return sub_fields_[idx];
230 void setup_components();
FieldAlgorithmBase< spacedim, Value > SubFieldBaseType
MultiFieldFactory(unsigned int index)
Constructor.
const SubFieldType & operator[](unsigned int idx) const
Basic time management class.
Field< spacedim, Value > SubFieldType
Input::Array full_input_list_
Full list of input field descriptors from which the subfields of MultiField are set.
Space< spacedim >::Point Point
const TimeGovernor * tg_
TimeGovernor is necessary for set input list in setup_components method.
unsigned int size() const
Number of subfields that compose the multi-field.
SubFieldType & operator[](unsigned int idx)
FieldValue_< 0, 1, typename Value::element_type > MultiFieldValue
Representation of one time step..
Basic time management functionality for unsteady (and steady) solvers (class Equation).
Common abstract parent of all Field<...> classes.
The class for outputting data during time.
std::shared_ptr< FieldFE< spacedim, Value > > create_field(VectorMPI &vec_seq, Mesh &mesh, unsigned int n_comp)
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.
std::shared_ptr< FieldBaseType > FieldBasePtr
FieldAlgorithmBase< spacedim, Value >::Point Point
Global macros to enhance readability and debugging, general constants.
Class for representation of a vector of fields of the same physical quantity.
#define DECLARE_INPUT_EXCEPTION(ExcName, Format)
Macro for simple definition of input exceptions.
std::vector< SubFieldType > sub_fields_
Subfields (items) of MultiField.
Class template representing a field with values dependent on: point, element, and region.
const MultiField< spacedim, typename FieldValue< spacedim >::Enum > * no_check_control_field_