|
| sphParticlesSet () |
| Constructor.
|
|
| ~sphParticlesSet () |
| Destructor.
|
|
void | n (unsigned int N) |
| Set the number of particles.
|
|
unsigned int | n () const |
| Get the number of particles.
|
|
void | addScalar (std::string name, std::string value) |
| Add a scalar property for this particles set.
|
|
std::vector< std::string > | scalarNames () const |
| Get the scalar names list.
|
|
std::vector< std::string > | scalarValues () const |
| Get the scalar values list.
|
|
void | input (std::string path, std::string format, std::string fields) |
| Set the file path from which the particles should be read.
|
|
const std::string | inputPath () const |
| Get the file path from the particles would be read.
|
|
const std::string | inputFormat () const |
| Get the input file format.
|
|
std::vector< std::string > | inputFields () const |
| Get the input file fields.
|
|
void | output (std::string path, std::string format, std::string fields) |
| Set the file path where the particles should be written.
|
|
const std::string | outputPath () const |
| Get the output file path.
|
|
const std::string | outputFormat () const |
| Get the output file format.
|
|
std::vector< std::string > | outputFields () const |
| Get the output file fields.
|
|
Particles set data.
In AQUAgpusph the particles can be deivided in sets. Each set may have different physic properties, or it can be used just to separate the particles by type (i.e. Fluid particles/Boundaries/Sensors).
Each particles set should be loaded from a different files, as well as saved in different files.
These setting are set between the following XML tags:
<ParticlesSet n="100000">
</ParticlesSet>
Where <strong class= is the number of particles for this set of particles.
- See also
- Aqua::InputOutput::Particles
void Aqua::InputOutput::ProblemSetup::sphParticlesSet::output |
( |
std::string |
path, |
|
|
std::string |
format, |
|
|
std::string |
fields |
|
) |
| |
Set the file path where the particles should be written.
This field can be set with the tag Save
, for instance: <Save format="VTK" file="output.proc{mpi_rank}.{index}.vtk" fields="r,normal" />
Several scaper strings can be used to let AQUAgpusph compute the file path, at the appropriate Aqua::InputOutput::Particles instance. See Aqua::newFilePath()
- Parameters
-
path | File path. |
format | File format. |
fields | Fields to be loaded from the file |
- See also
- Aqua::InputOutput::Particles
- Note
- In case
"%d"
/"{index}"
is not provided, it will be appended at the end of the file name, as well as the appropriate file extension (backward compatibility)