18 #ifndef FIELD_DEPTH_HH_ 19 #define FIELD_DEPTH_HH_ 50 ASSERT(
false).error(
"This method can't be used for FieldDepth");
58 ASSERT(
false).error(
"This method can't be used for FieldDepth");
77 ASSERT(
false).error(
"Forbidden method for FieldCoords!");
81 ASSERT(
false).error(
"Forbidden method for FieldCoords!");
85 ASSERT(
false).error(
"Forbidden method for FieldCoords!");
93 double limit = std::numeric_limits<double>::max();
94 return fmt::format(
"{{ \"shape\": [ 1, 1 ], \"type\": \"Double\", \"limit\": [ {}, {} ] }}", -limit, +limit);
108 std::shared_ptr<EvalPoints> eval_points = cache_map.
eval_points();
114 for (
unsigned int i_data = reg_chunk_begin; i_data < reg_chunk_end; ++i_data) {
115 p = coords_cache->template vec<3>(i_data);
unsigned int region_chunk_begin(unsigned int region_patch_idx) const
Return begin position of region chunk in FieldValueCache.
Class MappingP1 implements the affine transformation of the unit cell onto the actual cell...
Common abstract parent of all Field<...> classes.
Container for various descendants of FieldCommonBase.
bool is_constant(FMT_UNUSED Region reg) override
FieldValueCache< double > * value_cache() override
Implements FieldCommon::value_cache.
void set_field_coords(FieldCoords *field_coords)
Setter of field_coords data member.
std::vector< const FieldCommon * > set_dependency(FMT_UNUSED FieldSet &field_set, FMT_UNUSED unsigned int i_reg) const override
Implements FieldCommon::set_dependency().
void observe_output(FMT_UNUSED std::shared_ptr< Observe > observe) override
static unsigned int get()
Return number of stored elements.
void set_input_list(FMT_UNUSED const Input::Array &list, FMT_UNUSED const TimeGovernor &tg) override
void set_mesh(const Mesh &mesh) override
std::string format(CStringRef format_str, ArgList args)
Directing class of FieldValueCache.
std::string get_value_attribute() const override
void cache_reallocate(FMT_UNUSED const ElementCacheMap &cache_map, FMT_UNUSED unsigned int region_idx) const override
Implements FieldCommon::cache_allocate.
const Mesh * mesh_
Pointer to the mesh.
void copy_from(FMT_UNUSED const FieldCommon &other) override
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
std::shared_ptr< SurfaceDepth > surface_depth_
Surface depth object calculate distance from surface.
void set_surface_depth(std::shared_ptr< SurfaceDepth > surface_depth)
Setter of surface_depth data member.
Basic time management functionality for unsteady (and steady) solvers (class Equation).
IT::Instance get_input_type() override
bool set_time(FMT_UNUSED const TimeStep &time, FMT_UNUSED LimitSide limit_side) override
FieldValueCache< double > * value_cache() override
Implements FieldCommon::value_cache.
unsigned int region_chunk_end(unsigned int region_patch_idx) const
Return end position of region chunk in FieldValueCache.
void set_shape(uint n_rows, uint n_cols)
void cache_update(ElementCacheMap &cache_map, unsigned int region_patch_idx) const override
Implements FieldCommon::cache_update.
IT::Array get_multifield_input_type() override
FieldValueCache< double > value_cache_
const FieldValueCache< double > * value_cache() const override
Implements FieldCommon::value_cache.
std::shared_ptr< EvalPoints > eval_points() const
Getter of eval_points object.
const Mesh * mesh() const
FieldCoords * field_coords_
Pointer to coordinates field.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc...
Representation of one time step..
void field_output(FMT_UNUSED std::shared_ptr< OutputTime > stream) override
FieldResult field_result(FMT_UNUSED RegionSet region_set) const override