46 main(
int argc,
char *argv[])
57 if(modena_error_occurred())
59 return modena_error();
75 modena_inputs_set(inputs, Tpos, T);
81 if(modena_error_occurred())
83 modena_inputs_destroy(inputs);
84 modena_outputs_destroy(outputs);
87 return modena_error();
91 double rho = modena_outputs_get(outputs, 0);
100 modena_inputs_destroy(inputs);
101 modena_outputs_destroy(outputs);
size_t modena_model_inputs_argPos(const modena_model_t *self, const char *name)
Function determining position of an argument in the input vector.
modena_model_t * modena_model_new(const char *modelId)
Function fetching a surrogate model from MongoDB.
int modena_model_call(modena_model_t *self, modena_inputs_t *inputs, modena_outputs_t *outputs)
Function calling the surrogate model and checking for errors.
int main(int argc, char *argv[])
Reads parameters. Creates struts and walls. Saves foam morphology to a file.
void modena_model_destroy(modena_model_t *self)
Function deallocating the memory allocated for the surrogate model.
void modena_model_argPos_check(const modena_model_t *self)
Function checking that the user has queried all input positions.