25#ifndef _WRAPS_C_TFCUNIVERSE_H_
26#define _WRAPS_C_TFCUNIVERSE_H_
114 unsigned int numTypes,
Handle to a BoundaryConditionsArgsContainer instance.
Definition tfCBoundaryConditions.h:80
Handle to a BoundaryConditions instance.
Definition tfCBoundaryConditions.h:72
Handle to a ParticleHandle instance.
Definition tfCParticle.h:111
Handle to a ParticleType instance.
Definition tfCParticle.h:119
Handle to a UniverseConfig instance.
Definition tfCUniverse.h:39
HRESULT tfUniverseConfig_getNumThreads(struct tfUniverseConfigHandle *handle, unsigned int *numThreads)
Get the number of threads for parallel execution.
HRESULT tfUniverseConfig_destroy(struct tfUniverseConfigHandle *handle)
Destroy an instance.
HRESULT tfUniverseConfig_setDim(struct tfUniverseConfigHandle *handle, tfFloatP_t *dim)
Set the dimensions of the universe.
HRESULT tfUniverse_getVirialO(tfFloatP_t *origin, tfFloatP_t radius, tfFloatP_t **virial)
Get the virial tensor of a neighborhood.
HRESULT tfUniverseConfig_getBoundaryConditions(struct tfUniverseConfigHandle *handle, struct tfBoundaryConditionsArgsContainerHandle *bargsHandle)
Get the boundary condition argument container.
HRESULT tfUniverse_getBoundaryConditions(struct tfBoundaryConditionsHandle *bcs)
Get the boundary conditions.
HRESULT tfUniverseConfig_setFlags(struct tfUniverseConfigHandle *handle, unsigned int flags)
Set the universe flags.
HRESULT tfUniverseConfig_setTemperature(struct tfUniverseConfigHandle *handle, tfFloatP_t temperature)
Set the universe temperature.
HRESULT tfUniverseConfig_init(struct tfUniverseConfigHandle *handle)
Initialize a new instance.
HRESULT tfUniverse_start()
Starts the universe time evolution, and advanced the universe forward by timesteps in dt....
HRESULT tfUniverseConfig_getDim(struct tfUniverseConfigHandle *handle, tfFloatP_t **dim)
Get the dimensions of the universe.
HRESULT tfUniverse_getDim(tfFloatP_t **dim)
Get the dimensions of the universe.
HRESULT tfUniverseConfig_setBoundaryConditions(struct tfUniverseConfigHandle *handle, struct tfBoundaryConditionsArgsContainerHandle *bargsHandle)
Set the boundary condition argument container.
HRESULT tfUniverse_getCutoff(tfFloatP_t *cutoff)
Get the global interaction cutoff distance.
HRESULT tfUniverseConfig_setNumThreads(struct tfUniverseConfigHandle *handle, unsigned int numThreads)
Set the number of threads for parallel execution.
HRESULT tfUniverse_getIsRunning(bool *isRunning)
Get whether the universe is running.
HRESULT tfUniverse_getNumTypes(int *numTypes)
Get the current number of registered particle types.
HRESULT tfUniverseConfig_getCells(struct tfUniverseConfigHandle *handle, int **cells)
Get the grid discretization.
HRESULT tfUniverse_reset()
Reset the universe.
HRESULT tfUniverse_getTime(tfFloatP_t *time)
Get the current time.
HRESULT tfUniverse_resetSpecies()
Reset all species in all particles.
HRESULT tfUniverse_getTemperature(tfFloatP_t *temperature)
Get the universe temperature.
HRESULT tfUniverseConfig_getCutoff(struct tfUniverseConfigHandle *handle, tfFloatP_t *cutoff)
Get the global interaction cutoff distance.
HRESULT tfUniverse_getName(char **name, unsigned int *numChars)
Get the name of the model / script.
HRESULT tfUniverse_getVirialT(struct tfParticleTypeHandle **phandles, unsigned int numTypes, tfFloatP_t **virial)
Get the virial tensor of the universe for a set of particle types.
HRESULT tfUniverse_getVirialOT(struct tfParticleTypeHandle **phandles, unsigned int numTypes, tfFloatP_t *origin, tfFloatP_t radius, tfFloatP_t **virial)
Get the virial tensor for a set of particle types in a neighborhood.
HRESULT tfUniverse_getCenter(tfFloatP_t **center)
Get the center of the universe.
HRESULT tfUniverseConfig_setCells(struct tfUniverseConfigHandle *handle, int *cells)
Set the grid discretization.
HRESULT tfUniverseConfig_setCutoff(struct tfUniverseConfigHandle *handle, tfFloatP_t cutoff)
Set the global interaction cutoff distance.
HRESULT tfUniverseConfig_getNumFluxSteps(struct tfUniverseConfigHandle *handle, unsigned int *numFluxSteps)
Get the number of flux steps per simulation step.
HRESULT tfUniverse_step(tfFloatP_t until, tfFloatP_t dt)
Integrates the universe for a duration as given by until, or for a single time step if 0 is passed.
HRESULT tfUniverse_getNumParts(unsigned int *numParts)
Get the number of particles in the universe.
HRESULT tfUniverse_getParticle(unsigned int pidx, struct tfParticleHandleHandle *handle)
Get the i'th particle of the universe.
HRESULT tfUniverse_getDt(tfFloatP_t *dt)
Get the period of a time step.
HRESULT tfUniverse_getKineticEnergy(tfFloatP_t *ke)
Get the current system kinetic energy.
HRESULT tfUniverseConfig_getTemperature(struct tfUniverseConfigHandle *handle, tfFloatP_t *temperature)
Get the universe temperature.
HRESULT tfUniverse_stop()
Stops the universe time evolution. This essentially freezes the universe, everything remains the same...
HRESULT tfUniverseConfig_getIntegrator(struct tfUniverseConfigHandle *handle, unsigned int *integrator)
Get the engine integrator enum.
HRESULT tfUniverseConfig_setIntegrator(struct tfUniverseConfigHandle *handle, unsigned int integrator)
Set the engine integrator enum.
HRESULT tfUniverseConfig_setNumFluxSteps(struct tfUniverseConfigHandle *handle, unsigned int numFluxSteps)
Set the number of flux steps per simulation step.
HRESULT tfUniverseConfig_getDt(struct tfUniverseConfigHandle *handle, tfFloatP_t *dt)
Get the period of a time step.
HRESULT tfUniverse_getVirial(tfFloatP_t **virial)
Get the virial tensor of the universe.
HRESULT tfUniverseConfig_setDt(struct tfUniverseConfigHandle *handle, tfFloatP_t dt)
Set the period of a time step.
HRESULT tfUniverseConfig_getFlags(struct tfUniverseConfigHandle *handle, unsigned int *flags)
Get the universe flags.