33 using namespace Utilities;
37 namespace OceanicPlateModels
43 min_depth(NaN::
DSNAN),
44 max_depth(NaN::
DSNAN),
49 this->
name =
"uniform raw";
61 "Uniform velocity model. Set the velocity to a constant value.");
65 "The depth in meters from which the velocity of this feature is present.");
68 "The depth in meters to which the velocity of this feature is present.");
71 "The velocity in meter per year");
84 std::vector<double> velocity_vec = prm.
get_vector<
double>(
"velocity");
86 velocity[1] = velocity_vec[1];
87 velocity[2] = velocity_vec[2];
96 std::array<double,3> velocity_,
101 if (depth <= max_depth && depth >=
min_depth)
105 if (depth <= max_depth_local && depth >= min_depth_local)
Operations string_operations_to_enum(const std::string &operation)
#define WB_REGISTER_FEATURE_OCEANIC_PLATE_VELOCITY_MODEL(classname, name)
WorldBuilder::World * world
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)
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)