|
Tissue Forge C 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|


Go to the source code of this file.
Data Structures | |
| struct | tfUniverseConfigHandle |
| Handle to a UniverseConfig instance. More... | |
Functions | |
| HRESULT | tfUniverse_getDim (tfFloatP_t **dim) |
| Get the dimensions of the universe. | |
| HRESULT | tfUniverse_getIsRunning (bool *isRunning) |
| Get whether the universe is running. | |
| HRESULT | tfUniverse_getName (char **name, unsigned int *numChars) |
| Get the name of the model / script. | |
| HRESULT | tfUniverse_getVirial (tfFloatP_t **virial) |
| Get the virial tensor of the universe. | |
| 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_getVirialO (tfFloatP_t *origin, tfFloatP_t radius, tfFloatP_t **virial) |
| Get the virial tensor of a neighborhood. | |
| 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_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_getCenter (tfFloatP_t **center) |
| Get the center of the universe. | |
| 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_stop () |
| Stops the universe time evolution. This essentially freezes the universe, everything remains the same, except time no longer moves forward. | |
| HRESULT | tfUniverse_start () |
Starts the universe time evolution, and advanced the universe forward by timesteps in dt. All methods to build and manipulate universe objects are valid whether the universe time evolution is running or stopped. | |
| HRESULT | tfUniverse_reset () |
| Reset the universe. | |
| HRESULT | tfUniverse_resetSpecies () |
| Reset all species in all particles. | |
| HRESULT | tfUniverse_getTemperature (tfFloatP_t *temperature) |
| Get the universe temperature. | |
| HRESULT | tfUniverse_getTime (tfFloatP_t *time) |
| Get the current time. | |
| HRESULT | tfUniverse_getDt (tfFloatP_t *dt) |
| Get the period of a time step. | |
| HRESULT | tfUniverse_getBoundaryConditions (struct tfBoundaryConditionsHandle *bcs) |
| Get the boundary conditions. | |
| HRESULT | tfUniverse_getKineticEnergy (tfFloatP_t *ke) |
| Get the current system kinetic energy. | |
| HRESULT | tfUniverse_getNumTypes (int *numTypes) |
| Get the current number of registered particle types. | |
| HRESULT | tfUniverse_getCutoff (tfFloatP_t *cutoff) |
| Get the global interaction cutoff distance. | |
| HRESULT | tfUniverseConfig_init (struct tfUniverseConfigHandle *handle) |
| Initialize a new instance. | |
| HRESULT | tfUniverseConfig_destroy (struct tfUniverseConfigHandle *handle) |
| Destroy an instance. | |
| HRESULT | tfUniverseConfig_getDim (struct tfUniverseConfigHandle *handle, tfFloatP_t **dim) |
| Get the dimensions of the universe. | |
| HRESULT | tfUniverseConfig_setDim (struct tfUniverseConfigHandle *handle, tfFloatP_t *dim) |
| Set the dimensions of the universe. | |
| HRESULT | tfUniverseConfig_getCells (struct tfUniverseConfigHandle *handle, int **cells) |
| Get the grid discretization. | |
| HRESULT | tfUniverseConfig_setCells (struct tfUniverseConfigHandle *handle, int *cells) |
| Set the grid discretization. | |
| HRESULT | tfUniverseConfig_getCutoff (struct tfUniverseConfigHandle *handle, tfFloatP_t *cutoff) |
| Get the global interaction cutoff distance. | |
| HRESULT | tfUniverseConfig_setCutoff (struct tfUniverseConfigHandle *handle, tfFloatP_t cutoff) |
| Set the global interaction cutoff distance. | |
| HRESULT | tfUniverseConfig_getFlags (struct tfUniverseConfigHandle *handle, unsigned int *flags) |
| Get the universe flags. | |
| HRESULT | tfUniverseConfig_setFlags (struct tfUniverseConfigHandle *handle, unsigned int flags) |
| Set the universe flags. | |
| HRESULT | tfUniverseConfig_getDt (struct tfUniverseConfigHandle *handle, tfFloatP_t *dt) |
| Get the period of a time step. | |
| HRESULT | tfUniverseConfig_setDt (struct tfUniverseConfigHandle *handle, tfFloatP_t dt) |
| Set the period of a time step. | |
| HRESULT | tfUniverseConfig_getTemperature (struct tfUniverseConfigHandle *handle, tfFloatP_t *temperature) |
| Get the universe temperature. | |
| HRESULT | tfUniverseConfig_setTemperature (struct tfUniverseConfigHandle *handle, tfFloatP_t temperature) |
| Set the universe temperature. | |
| HRESULT | tfUniverseConfig_getNumThreads (struct tfUniverseConfigHandle *handle, unsigned int *numThreads) |
| Get the number of threads for parallel execution. | |
| HRESULT | tfUniverseConfig_setNumThreads (struct tfUniverseConfigHandle *handle, unsigned int numThreads) |
| Set the number of threads for parallel execution. | |
| HRESULT | tfUniverseConfig_getNumFluxSteps (struct tfUniverseConfigHandle *handle, unsigned int *numFluxSteps) |
| Get the number of flux steps per simulation step. | |
| HRESULT | tfUniverseConfig_setNumFluxSteps (struct tfUniverseConfigHandle *handle, unsigned int numFluxSteps) |
| Set the number of flux steps per simulation step. | |
| 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_getBoundaryConditions (struct tfUniverseConfigHandle *handle, struct tfBoundaryConditionsArgsContainerHandle *bargsHandle) |
| Get the boundary condition argument container. | |
| HRESULT | tfUniverseConfig_setBoundaryConditions (struct tfUniverseConfigHandle *handle, struct tfBoundaryConditionsArgsContainerHandle *bargsHandle) |
| Set the boundary condition argument container. | |
| HRESULT tfUniverse_getBoundaryConditions | ( | struct tfBoundaryConditionsHandle * | bcs | ) |
Get the boundary conditions.
| bcs | boundary conditions |
| HRESULT tfUniverse_getCenter | ( | tfFloatP_t ** | center | ) |
Get the center of the universe.
| center | 3-element allocated array |
| HRESULT tfUniverse_getCutoff | ( | tfFloatP_t * | cutoff | ) |
Get the global interaction cutoff distance.
| cutoff |
| HRESULT tfUniverse_getDim | ( | tfFloatP_t ** | dim | ) |
Get the dimensions of the universe.
| dim | 3-element allocated array |
| HRESULT tfUniverse_getDt | ( | tfFloatP_t * | dt | ) |
Get the period of a time step.
| dt |
| HRESULT tfUniverse_getIsRunning | ( | bool * | isRunning | ) |
Get whether the universe is running.
| isRunning |
| HRESULT tfUniverse_getKineticEnergy | ( | tfFloatP_t * | ke | ) |
Get the current system kinetic energy.
| ke |
| HRESULT tfUniverse_getName | ( | char ** | name, |
| unsigned int * | numChars ) |
Get the name of the model / script.
| name | |
| numChars |
| HRESULT tfUniverse_getNumParts | ( | unsigned int * | numParts | ) |
Get the number of particles in the universe.
| numParts | number of particles |
| HRESULT tfUniverse_getNumTypes | ( | int * | numTypes | ) |
Get the current number of registered particle types.
| numTypes |
| HRESULT tfUniverse_getParticle | ( | unsigned int | pidx, |
| struct tfParticleHandleHandle * | handle ) |
Get the i'th particle of the universe.
| pidx | index of particle |
| handle | handle to populate |
| HRESULT tfUniverse_getTemperature | ( | tfFloatP_t * | temperature | ) |
Get the universe temperature.
The universe can be run with, or without a thermostat. With a thermostat, getting / setting the temperature changes the temperature that the thermostat will try to keep the universe at. When the universe is run without a thermostat, reading the temperature returns the computed universe temp, but attempting to set the temperature yields an error.
| temperature |
| HRESULT tfUniverse_getTime | ( | tfFloatP_t * | time | ) |
Get the current time.
| time |
| HRESULT tfUniverse_getVirial | ( | tfFloatP_t ** | virial | ) |
Get the virial tensor of the universe.
| virial | virial tensor |
| HRESULT tfUniverse_getVirialO | ( | tfFloatP_t * | origin, |
| tfFloatP_t | radius, | ||
| tfFloatP_t ** | virial ) |
Get the virial tensor of a neighborhood.
| origin | origin of neighborhood |
| radius | radius of neighborhood |
| virial | virial tensor |
| 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.
| phandles | array of types |
| numTypes | number of types |
| origin | origin of neighborhood |
| radius | radius of neighborhood |
| virial | virial tensor |
| 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.
| phandles | array of types |
| numTypes | number of types |
| virial | virial tensor |
| HRESULT tfUniverse_reset | ( | ) |
Reset the universe.
| HRESULT tfUniverse_resetSpecies | ( | ) |
Reset all species in all particles.
| HRESULT tfUniverse_start | ( | ) |
Starts the universe time evolution, and advanced the universe forward by timesteps in dt. All methods to build and manipulate universe objects are valid whether the universe time evolution is running or stopped.
| 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.
| until | period to execute, in units of simulation time. |
| dt | overrides the existing time step, and uses this value for time stepping; currently not supported. |
| HRESULT tfUniverse_stop | ( | ) |
Stops the universe time evolution. This essentially freezes the universe, everything remains the same, except time no longer moves forward.
| HRESULT tfUniverseConfig_destroy | ( | struct tfUniverseConfigHandle * | handle | ) |
Destroy an instance.
| handle | populated handle |
| HRESULT tfUniverseConfig_getBoundaryConditions | ( | struct tfUniverseConfigHandle * | handle, |
| struct tfBoundaryConditionsArgsContainerHandle * | bargsHandle ) |
Get the boundary condition argument container.
| handle | populated handle |
| bargsHandle | argument container |
| HRESULT tfUniverseConfig_getCells | ( | struct tfUniverseConfigHandle * | handle, |
| int ** | cells ) |
Get the grid discretization.
| handle | populated handle |
| cells | grid discretization |
| HRESULT tfUniverseConfig_getCutoff | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t * | cutoff ) |
Get the global interaction cutoff distance.
| handle | populated handle |
| cutoff | cutoff distance |
| HRESULT tfUniverseConfig_getDim | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t ** | dim ) |
Get the dimensions of the universe.
| handle | populated handle |
| dim | 3-element allocated array |
| HRESULT tfUniverseConfig_getDt | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t * | dt ) |
Get the period of a time step.
| handle | populated handle |
| dt | period of a time step |
| HRESULT tfUniverseConfig_getFlags | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int * | flags ) |
Get the universe flags.
| handle | populated handle |
| flags | universe flags |
| HRESULT tfUniverseConfig_getIntegrator | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int * | integrator ) |
Get the engine integrator enum.
| handle | populated handle |
| integrator | engine integrator enum |
| HRESULT tfUniverseConfig_getNumFluxSteps | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int * | numFluxSteps ) |
Get the number of flux steps per simulation step.
| handle | populated handle |
| numFluxSteps | number of flux steps per simulation step |
| HRESULT tfUniverseConfig_getNumThreads | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int * | numThreads ) |
Get the number of threads for parallel execution.
| handle | populated handle |
| numThreads | number of threads for parallel execution |
| HRESULT tfUniverseConfig_getTemperature | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t * | temperature ) |
Get the universe temperature.
The universe can be run with, or without a thermostat. With a thermostat, getting / setting the temperature changes the temperature that the thermostat will try to keep the universe at. When the universe is run without a thermostat, reading the temperature returns the computed universe temp, but attempting to set the temperature yields an error.
| handle | populated handle |
| temperature | universe temperature |
| HRESULT tfUniverseConfig_init | ( | struct tfUniverseConfigHandle * | handle | ) |
Initialize a new instance.
| handle | handle to populate |
| HRESULT tfUniverseConfig_setBoundaryConditions | ( | struct tfUniverseConfigHandle * | handle, |
| struct tfBoundaryConditionsArgsContainerHandle * | bargsHandle ) |
Set the boundary condition argument container.
| handle | populated handle |
| bargsHandle | argument container |
| HRESULT tfUniverseConfig_setCells | ( | struct tfUniverseConfigHandle * | handle, |
| int * | cells ) |
Set the grid discretization.
| handle | populated handle |
| cells | grid discretization |
| HRESULT tfUniverseConfig_setCutoff | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t | cutoff ) |
Set the global interaction cutoff distance.
| handle | populated handle |
| cutoff | cutoff distance |
| HRESULT tfUniverseConfig_setDim | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t * | dim ) |
Set the dimensions of the universe.
| handle | populated handle |
| dim | 3-element array |
| HRESULT tfUniverseConfig_setDt | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t | dt ) |
Set the period of a time step.
| handle | populated handle |
| dt | period of a time step |
| HRESULT tfUniverseConfig_setFlags | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int | flags ) |
Set the universe flags.
| handle | populated handle |
| flags | universe flags |
| HRESULT tfUniverseConfig_setIntegrator | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int | integrator ) |
Set the engine integrator enum.
| handle | populated handle |
| integrator | engine integrator enum |
| HRESULT tfUniverseConfig_setNumFluxSteps | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int | numFluxSteps ) |
Set the number of flux steps per simulation step.
| handle | populated handle |
| numFluxSteps | number of flux steps per simulation step |
| HRESULT tfUniverseConfig_setNumThreads | ( | struct tfUniverseConfigHandle * | handle, |
| unsigned int | numThreads ) |
Set the number of threads for parallel execution.
| handle | populated handle |
| numThreads | number of threads for parallel execution |
| HRESULT tfUniverseConfig_setTemperature | ( | struct tfUniverseConfigHandle * | handle, |
| tfFloatP_t | temperature ) |
Set the universe temperature.
The universe can be run with, or without a thermostat. With a thermostat, getting / setting the temperature changes the temperature that the thermostat will try to keep the universe at. When the universe is run without a thermostat, reading the temperature returns the computed universe temp, but attempting to set the temperature yields an error.
| handle | populated handle |
| temperature | universe temperature |