Files
karl/include/generators/scalar_field_generator.h
2024-12-04 17:15:04 +01:00

18 lines
592 B
C++
Executable File

#ifndef SCALAR_FIELD_GENERATOR_H
#define SCALAR_FIELD_GENERATOR_H
#include <memory>
#include "jansson.h"
#include "simulation/scalar_field.h"
namespace generator {
// return a shared_ptr to a ScalarField object described in the json-object "object"
// has to contain a json-object "ScalarFieldFunctionInZ"
// - has to contain a json-object "zFunction" defined as in "function3D" (in "generators/function_generator.h")
// (example in "simulation_config/scalar_fields_examples.json")
std::shared_ptr<ScalarField> buildScalarField(json_t* object);
}
#endif /* SCALAR_FIELD_GENERATOR_H */