49 main(
int argc,
char *argv[])
60 if(modena_error_occurred())
62 return modena_error();
78 modena_inputs_set(inputs, Tpos, T);
84 if(modena_error_occurred())
86 modena_inputs_destroy(inputs);
87 modena_outputs_destroy(outputs);
90 return modena_error();
94 double rho = modena_outputs_get(outputs, 0);
103 modena_inputs_destroy(inputs);
104 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.