libtrixi
Loading...
Searching...
No Matches
Enumerations | Functions
api.c File Reference
#include "trixi.h"
#include "auxiliary.h"

Enumerations

enum  {
  TRIXI_FTPR_INITIALIZE_SIMULATION , TRIXI_FTPR_CALCULATE_DT , TRIXI_FTPR_IS_FINISHED , TRIXI_FTPR_STEP ,
  TRIXI_FTPR_FINALIZE_SIMULATION , TRIXI_FTPR_NDIMS , TRIXI_FPTR_NELEMENTS , TRIXI_FPTR_NELEMENTS_GLOBAL ,
  TRIXI_FPTR_NDOFS , TRIXI_FPTR_NDOFS_GLOBAL , TRIXI_FPTR_NDOFS_ELEMENT , TRIXI_FTPR_NVARIABLES ,
  TRIXI_FPTR_NNODES , TRIXI_FPTR_LOAD_NODE_REFERENCE_COORDINATES , TRIXI_FPTR_LOAD_NODE_WEIGHTS , TRIXI_FTPR_LOAD_PRIMITIVE_VARS ,
  TRIXI_FTPR_LOAD_ELEMENT_AVERAGED_PRIMITIVE_VARS , TRIXI_FTPR_REGISTER_DATA , TRIXI_FTPR_VERSION_LIBRARY , TRIXI_FTPR_VERSION_LIBRARY_MAJOR ,
  TRIXI_FTPR_VERSION_LIBRARY_MINOR , TRIXI_FTPR_VERSION_LIBRARY_PATCH , TRIXI_FTPR_VERSION_JULIA , TRIXI_FTPR_VERSION_JULIA_EXTENDED ,
  TRIXI_FTPR_EVAL_JULIA , TRIXI_FTPR_GET_T8CODE_FOREST , TRIXI_FPTR_GET_SIMULATION_TIME , TRIXI_NUM_FPTRS
}
 

Functions

void trixi_initialize (const char *project_directory, const char *depot_path)
 Initialize Julia runtime environment.
 
void trixi_finalize ()
 Finalize Julia runtime environment.
 
int trixi_version_library_major ()
 Return major version number of libtrixi.
 
int trixi_version_library_minor ()
 Return minor version number of libtrixi.
 
int trixi_version_library_patch ()
 Return patch version number of libtrixi.
 
const char * trixi_version_library ()
 Return full version string of libtrixi.
 
const char * trixi_version_julia ()
 Return name and version of loaded Julia packages LibTrixi directly depends on.
 
const char * trixi_version_julia_extended ()
 Return name and version of all loaded Julia packages.
 
int trixi_initialize_simulation (const char *libelixir)
 Set up Trixi simulation.
 
int trixi_is_finished (int handle)
 Check if simulation is finished.
 
void trixi_step (int handle)
 Perform next simulation step.
 
void trixi_finalize_simulation (int handle)
 Finalize simulation.
 
double trixi_calculate_dt (int handle)
 Get time step length.
 
int trixi_ndims (int handle)
 Return number of spatial dimensions.
 
int trixi_nelements (int handle)
 Return number of local elements.
 
int trixi_nelementsglobal (int handle)
 Return global number of elements.
 
int trixi_ndofs (int handle)
 Return number of local degrees of freedom.
 
int trixi_ndofsglobal (int handle)
 Return global number of degrees of freedom.
 
int trixi_ndofselement (int handle)
 Return number of degrees of freedom per element.
 
int trixi_nvariables (int handle)
 Return number of (conservative) variables.
 
int trixi_nnodes (int handle)
 Return number of quadrature nodes per dimension.
 
void trixi_load_node_reference_coordinates (int handle, double *node_coords)
 Get reference coordinates of 1D quadrature nodes.
 
void trixi_load_node_weights (int handle, double *node_weights)
 Get weights of 1D quadrature nodes.
 
void trixi_load_primitive_vars (int handle, int variable_id, double *data)
 Load primitive variable.
 
void trixi_load_element_averaged_primitive_vars (int handle, int variable_id, double *data)
 Load element averages for primitive variable.
 
void trixi_register_data (int handle, int index, int size, const double *data)
 Store data vector in current simulation's registry.
 
double trixi_get_simulation_time (int handle)
 Return current physical time.
 
t8_forest_t trixi_get_t8code_forest (int handle)
 
void trixi_eval_julia (const char *code)
 Execute Julia code.
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TRIXI_FTPR_INITIALIZE_SIMULATION 
TRIXI_FTPR_CALCULATE_DT 
TRIXI_FTPR_IS_FINISHED 
TRIXI_FTPR_STEP 
TRIXI_FTPR_FINALIZE_SIMULATION 
TRIXI_FTPR_NDIMS 
TRIXI_FPTR_NELEMENTS 
TRIXI_FPTR_NELEMENTS_GLOBAL 
TRIXI_FPTR_NDOFS 
TRIXI_FPTR_NDOFS_GLOBAL 
TRIXI_FPTR_NDOFS_ELEMENT 
TRIXI_FTPR_NVARIABLES 
TRIXI_FPTR_NNODES 
TRIXI_FPTR_LOAD_NODE_REFERENCE_COORDINATES 
TRIXI_FPTR_LOAD_NODE_WEIGHTS 
TRIXI_FTPR_LOAD_PRIMITIVE_VARS 
TRIXI_FTPR_LOAD_ELEMENT_AVERAGED_PRIMITIVE_VARS 
TRIXI_FTPR_REGISTER_DATA 
TRIXI_FTPR_VERSION_LIBRARY 
TRIXI_FTPR_VERSION_LIBRARY_MAJOR 
TRIXI_FTPR_VERSION_LIBRARY_MINOR 
TRIXI_FTPR_VERSION_LIBRARY_PATCH 
TRIXI_FTPR_VERSION_JULIA 
TRIXI_FTPR_VERSION_JULIA_EXTENDED 
TRIXI_FTPR_EVAL_JULIA 
TRIXI_FTPR_GET_T8CODE_FOREST 
TRIXI_FPTR_GET_SIMULATION_TIME 
TRIXI_NUM_FPTRS