Flow123d
JB_transport-112d700
|
Go to the documentation of this file.
163 <<
"Unknown field " << FieldCommon::EI_Field::qval <<
" in the " << EI_FieldType::val <<
": \n");
165 <<
"Field " << FieldCommon::EI_Field::qval <<
" is not set. Please set key 'scalar_field', 'vector_field' or 'tensor_field' at: \n");
167 <<
"Field " << FieldCommon::EI_Field::qval <<
" exists in equation. You cannot set user field of same name.\n");
208 FieldSet subset( FieldFlag::Flags::Mask mask)
const;
213 inline unsigned int size()
const {
346 unsigned int region_idx = reg_it.first;
347 for (
auto f_it : reg_it.second) {
348 f_it->cache_reallocate(cache_map, region_idx);
434 template<
int dim,
class Val>
static const Input::Type::Record & make_user_field_type(const std::string &equation_name)
Declare input record type of field defined by user.
std::vector< FieldCommon * > field_list_
List of FieldCommon objects (combine Fields and MultiFields.
FieldCommon & operator[](const std::string &field_name) const
const Mesh * mesh() const
Returns pointer to mesh.
Template Iter serves as general template for internal iterators.
unsigned int field_idx() const
Getter for field_idx_.
bool is_jump_time() const
TYPEDEF_ERR_INFO(EI_FieldType, std::string)
bool set_time(const TimeStep &time, LimitSide limit_side)
bool is_constant(Region reg) const
Basic time management class.
FieldCommon & output_type(OutputTime::DiscreteSpace rt)
Directing class of FieldValueCache.
void set_dependency(FieldSet &used_fieldset)
void mark_input_times(const TimeGovernor &tg)
void set_input_list(Input::Array input_list, const TimeGovernor &tg)
void flags_add(FieldFlag::Flags::Mask mask)
void output_type(OutputTime::DiscreteSpace rt)
bool operator==(const FieldListAccessor &other)
Comparison of accessors.
FieldListAccessor(std::vector< FieldCommon * > field_list, unsigned int field_idx)
Constructor.
Range< FieldListAccessor > fields_range() const
Returns range of Fields held in field_list.
std::map< unsigned int, std::vector< const FieldCommon * > > region_field_update_order_
unsigned int field_component_idx_
Index of subfield in MultiField (fo fields hold only value 0 that is not used)
virtual void set_input_list(const Input::Array &list, const TimeGovernor &tg)=0
void set_surface_depth(std::shared_ptr< SurfaceDepth > surface_depth)
Set surface depth object to "d" field.
FieldCommon * field() const
Returns pointer to actual field held by accessor.
FieldCommon & flags_add(FieldFlag::Flags::Mask mask)
std::vector< FieldCommon * > field_list
List of all fields.
FieldCoords X_
Field holds coordinates for computing of FieldFormulas.
void set_components(const std::vector< string > &names)
FieldListAccessor()
Default constructor.
void topological_sort(const FieldCommon *f, unsigned int i_reg, std::unordered_set< const FieldCommon * > &used_fields)
Helper method sort used fields by dependency.
std::string print_dependency() const
Return order of evaluated fields by dependency and region_idx.
void set_default_fieldset()
Representation of one time step..
const Mesh * mesh_
Pointer to the mesh.
Basic time management functionality for unsteady (and steady) solvers (class Equation).
Common abstract parent of all Field<...> classes.
FieldCommon * operator->() const
Dereference operator simplify access to actual field held by accessor.
void cache_update(ElementCacheMap &cache_map)
void inc()
Iterates to next Field.
Container for various descendants of FieldCommonBase.
void set_default_fieldset(FieldSet &default_fs)
unsigned int field_idx_
Index of actual Field in field_list.
bool operator!=(const FieldListAccessor &other) const
void set_components(const std::vector< string > &names)
void set_surface_depth(std::shared_ptr< SurfaceDepth > surface_depth)
Setter of surface_depth data member.
void set_mesh(const Mesh &mesh)
FieldSet()
Default constructor.
friend std::ostream & operator<<(std::ostream &stream, const FieldSet &set)
void cache_reallocate(const ElementCacheMap &cache_map, FieldSet &used_fieldset)
void set_field(const std::string &dest_field_name, FieldCommon &source)
virtual void set_mesh(const Mesh &mesh)=0
DECLARE_INPUT_EXCEPTION(ExcUnknownField,<< "Unknown field "<< FieldCommon::EI_Field::qval<< " in the "<< EI_FieldType::val<< ": \n")
void mark_input_times(const TimeGovernor &tg)
FieldDepth depth_
Field holds surface depth for computing of FieldFormulas.
Input::Type::Record make_field_descriptor_type(const std::string &equation_name) const
unsigned int field_component_idx() const
Getter for field_component_idx_.
FieldCommon * field(const std::string &field_name) const
Implementation of range helper class.