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