Go to the documentation of this file.
18 #ifndef FIELD_DEPTH_HH_
19 #define FIELD_DEPTH_HH_
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);
std::shared_ptr< SharedData > shared_
static unsigned int get()
Return number of stored elements.
const FieldValueCache< double > * value_cache() const override
Implements FieldCommon::value_cache.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc.
IT::Array get_multifield_input_type() override
void cache_update(ElementCacheMap &cache_map, unsigned int region_patch_idx) const override
Implements FieldCommon::cache_update.
FieldValueCache< double > * value_cache() override
Implements FieldCommon::value_cache.
void set_shape(uint n_rows, uint n_cols)
FieldValueCache< double > value_cache_
Directing class of FieldValueCache.
const Mesh * mesh() const
std::string format(CStringRef format_str, ArgList args)
unsigned int region_chunk_end(unsigned int region_patch_idx) const
Return end position of region chunk in FieldValueCache.
#define ASSERT_PERMANENT(expr)
Allow use shorter versions of macro names if these names is not used with external library.
FieldCoords * field_coords_
Pointer to coordinates field.
Representation of one time step..
Basic time management functionality for unsteady (and steady) solvers (class Equation).
std::shared_ptr< EvalPoints > eval_points() const
Getter of eval_points object.
void set_input_list(FMT_UNUSED const Input::Array &list, FMT_UNUSED const TimeGovernor &tg) override
Common abstract parent of all Field<...> classes.
std::vector< const FieldCommon * > set_dependency(FMT_UNUSED FieldSet &field_set, FMT_UNUSED unsigned int i_reg) const override
Implements FieldCommon::set_dependency().
Container for various descendants of FieldCommonBase.
std::string get_value_attribute() const override
FieldResult field_result(FMT_UNUSED RegionSet region_set) const override
void set_field_coords(FieldCoords *field_coords)
Setter of field_coords data member.
void set_mesh(const Mesh &mesh) override
unsigned int region_chunk_begin(unsigned int region_patch_idx) const
Return begin position of region chunk in FieldValueCache.
bool is_constant(FMT_UNUSED Region reg) override
void set_surface_depth(std::shared_ptr< SurfaceDepth > surface_depth)
Setter of surface_depth data member.
FieldValueCache< double > * value_cache() override
Implements FieldCommon::value_cache.
void observe_output(FMT_UNUSED std::shared_ptr< Observe > observe) override
void copy_from(FMT_UNUSED const FieldCommon &other) override
bool set_time(FMT_UNUSED const TimeStep &time, FMT_UNUSED LimitSide limit_side) override
IT::Instance get_input_type() override
void cache_reallocate(FMT_UNUSED const ElementCacheMap &cache_map, FMT_UNUSED unsigned int region_idx) const override
Implements FieldCommon::cache_allocate.
Class MappingP1 implements the affine transformation of the unit cell onto the actual cell.
void field_output(FMT_UNUSED std::shared_ptr< OutputTime > stream, FMT_UNUSED OutputTime::DiscreteSpace type) override
std::shared_ptr< SurfaceDepth > surface_depth_
Surface depth object calculate distance from surface.