World Builder
0.1.0-pre
A geodyanmic initial conditions generator
|
#include <iostream>
#include <world_builder/world.h>
#include <world_builder/wrapper_c.h>
#include <world_builder/assert.h>
Go to the source code of this file.
Functions | |
void | create_world (void **ptr_ptr_world, const char *world_builder_file) |
void | temperature_2d (void *ptr_ptr_world, double x, double z, double depth, double gravity, double *temperature) |
void | temperature_3d (void *ptr_ptr_world, double x, double y, double z, double depth, double gravity, double *temperature) |
void | composition_2d (void *ptr_ptr_world, double x, double z, double depth, unsigned int composition_number, bool *composition) |
void | composition_3d (void *ptr_ptr_world, double x, double y, double z, double depth, unsigned int composition_number, bool *composition) |
void | release_world (void *ptr_ptr_world) |
void composition_2d | ( | void * | ptr_ptr_world, |
double | x, | ||
double | z, | ||
double | depth, | ||
unsigned int | composition_number, | ||
bool * | composition | ||
) |
This function return the composition at a specific location given x, z, depth and composition number.
Definition at line 67 of file wrapper_c.cc.
void composition_3d | ( | void * | ptr_ptr_world, |
double | x, | ||
double | y, | ||
double | z, | ||
double | depth, | ||
unsigned int | composition_number, | ||
bool * | composition | ||
) |
This function return the composition at a specific location given x, y, z, depth and composition number.
Definition at line 78 of file wrapper_c.cc.
void create_world | ( | void ** | ptr_ptr_world, |
const char * | world_builder_file | ||
) |
This function creates an object of the world builder and returns a pointer to it. This pointer can then be used to call the temperature and composition functions. When done call the release world function to destroy the object.
Definition at line 32 of file wrapper_c.cc.
void release_world | ( | void * | ptr_ptr_world | ) |
The destructor for the world builder class. Call this function when done with the world builder.
Definition at line 89 of file wrapper_c.cc.
void temperature_2d | ( | void * | ptr_ptr_world, |
double | x, | ||
double | z, | ||
double | depth, | ||
double | gravity, | ||
double * | temperature | ||
) |
This function return the temperature at a specific location given x, z, depth and gravity.
Definition at line 43 of file wrapper_c.cc.
void temperature_3d | ( | void * | ptr_ptr_world, |
double | x, | ||
double | y, | ||
double | z, | ||
double | depth, | ||
double | gravity, | ||
double * | temperature | ||
) |
This function return the temperature at a specific location given x, y, z, depth and gravity.
Definition at line 54 of file wrapper_c.cc.