34 using namespace Utilities;
38 namespace ContinentalPlateModels
44 min_depth(NaN::
DSNAN),
45 max_depth(NaN::
DSNAN),
50 this->
name =
"uniform raw";
62 "Uniform velocity model. Set the velocity to a constant value.");
66 "The depth in meters from which the composition of this feature is present.");
69 "The depth in meters to which the composition of this feature is present.");
72 "The velocity in meter per year");
85 std::vector<double> velocity_vec = prm.
get_vector<
double>(
"velocity");
87 velocity[1] = velocity_vec[1];
88 velocity[2] = velocity_vec[2];
97 std::array<double,3> velocity_,
103 if (depth <= max_depth_local && depth >= min_depth_local)
105 if (depth <= max_depth && depth >=
min_depth)
#define WB_REGISTER_FEATURE_CONTINENTAL_PLATE_VELOCITY_MODEL(classname, name)
Operations string_operations_to_enum(const std::string &operation)
Point< 2 > get_surface_point() const
SurfaceValueInfo local_value(const Point< 2 > &check_point) const
double apply_operation(const Operations operation, const double old_value, const double new_value)
WorldBuilder::World * world
void declare_entry(const std::string &name, const Types::Interface &type, const std::string &documentation)
std::vector< T > get_vector(const std::string &name)
T get(const std::string &name)