35 using namespace Utilities;
39 using namespace FeatureUtilities;
46 min_depth(NaN::
DSNAN),
50 this->
name =
"uniform";
62 "Uniform compositional model. Sets constant compositional field.");
66 "The depth in meters from which the composition of this feature is present.");
68 "The depth in meters to which the composition of this feature is present.");
71 "A list with the labels of the composition which are present there.");
74 "TA list of compositional fractions corresponding to the compositions list.");
76 prm.
declare_entry(
"operation",
Types::String(
"replace", std::vector<std::string> {
"replace",
"replace defined only",
"add",
"subtract"}),
77 "Whether the value should replace any value previously defined at this location (replace) or " 78 "add the value to the previously define value. Replacing implies that all compositions not " 79 "explicitly defined are set to zero. To only replace the defined compositions use the replace only defined option.");
94 "There are not the same amount of compositions and fractions.");
102 const unsigned int composition_number,
107 if (depth <= max_depth && depth >=
min_depth)
#define WB_REGISTER_FEATURE_PLUME_COMPOSITION_MODEL(classname, name)
Operations string_operations_to_enum(const std::string &operation)
WorldBuilder::World * world
#define WBAssertThrow(condition, message)
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)