MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
model.h File Reference
#include "Python.h"
#include <stdbool.h>
#include "function.h"
#include "inputsoutputs.h"

Go to the source code of this file.

Data Structures

struct  modena_substitute_model_t
 stores a model and mapping for substitution More...
 
struct  modena_model_t
 stores a surrogate model More...
 

Macros

#define __BEGIN_DECLS   /* empty */
 
#define __END_DECLS   /* empty */
 

Typedefs

typedef struct modena_substitute_model_t modena_substitute_model_t
 stores a model and mapping for substitution
 
typedef struct modena_model_t modena_model_t
 stores a surrogate model
 

Functions

modena_model_tmodena_model_new (const char *modelId)
 Function fetching a surrogate model from MongoDB. More...
 
size_t modena_model_inputs_argPos (const modena_model_t *self, const char *name)
 Function determining position of an argument in the input vector. More...
 
void modena_model_argPos_check (const modena_model_t *self)
 Function checking that the user has queried all input positions. More...
 
size_t modena_model_outputs_argPos (const modena_model_t *self, const char *name)
 Function determining position of a result in the output vector. More...
 
char ** modena_model_inputs_names (const modena_model_t *self)
 Function returning the names of the inputs. More...
 
char ** modena_model_outputs_names (const modena_model_t *self)
 Function returning the names of the outputs. More...
 
char ** modena_model_parameters_names (const modena_model_t *self)
 Function returning the names of the parameters. More...
 
size_t modena_model_inputs_size (const modena_model_t *self)
 Function returning the size of the input vector. More...
 
size_t modena_model_outputs_size (const modena_model_t *self)
 Function returning the size of the output vector. More...
 
size_t modena_model_parameters_size (const modena_model_t *self)
 Function returning the size of the parameter vector. More...
 
void modena_model_inputs_siunits (const modena_model_t *self, const size_t i, modena_siunits_t *units)
 
void modena_model_outputs_siunits (const modena_model_t *self, const size_t i, modena_siunits_t *units)
 
int modena_model_call (modena_model_t *model, modena_inputs_t *inputs, modena_outputs_t *outputs)
 Function calling the surrogate model and checking for errors. More...
 
void modena_model_call_no_check (modena_model_t *model, modena_inputs_t *inputs, modena_outputs_t *outputs)
 Function calling the surrogate model w/o checking for errors. More...
 
void modena_model_destroy (modena_model_t *model)
 Function deallocating the memory allocated for the surrogate model. More...
 

Variables

PyTypeObject modena_model_tType
 
PyObject * modena_SurrogateModel
 

Detailed Description

MoDeNa low-level interface library

Author
Henrik Rusche

Definition in file model.h.