Outputs the magnitude of the velocity per bin specified by Sampling grid in KartesianProfile.
More...
#include <VelocityAbsProfile.h>
|
| VelocityAbsProfile (DensityProfile *dens) |
|
void | record (Molecule &mol, unsigned long uID) final |
| The recording step defines what kind of data needs to be recorded for a single molecule with a corresponding uID. More...
|
|
void | collectAppend (DomainDecompBase *domainDecomp, unsigned long uID) final |
| Append all necessary communication per bin to the DomainDecomposition. Append from e.g. _localProfile. More...
|
|
void | collectRetrieve (DomainDecompBase *domainDecomp, unsigned long uID) final |
| Get global values after AllReduceSum per bin. Write to e.g. _globalProfile. More...
|
|
void | output (string prefix, long unsigned accumulatedDatasets) final |
| Whatever is necessary to output for this profile. More...
|
|
void | reset (unsigned long uID) final |
| Used to reset all array contents for a specific uID in order to start the next recording timeframe. More...
|
|
int | comms () final |
| 1D profiles like a number density profile should return 1 here. 3D profiles that have 3 entries per bin that need to be communicated would need to return 3. Adjust as needed. Same number as commAppends in collectAppend. More...
|
|
virtual void | init (SamplingInformation &samplingInformation) |
| Init function is given a pointer to the KartesianProfile object handling this profile. Same for all profiles. More...
|
|
Outputs the magnitude of the velocity per bin specified by Sampling grid in KartesianProfile.
◆ collectAppend()
void VelocityAbsProfile::collectAppend |
( |
DomainDecompBase * |
domainDecomp, |
|
|
unsigned long |
uID |
|
) |
| |
|
inlinefinalvirtual |
Append all necessary communication per bin to the DomainDecomposition. Append from e.g. _localProfile.
- Parameters
-
domainDecomp | DomainDecomposition handling the communication. |
uID | uID of molecule in sampling grid, needed to put data in right spot in the profile arrays. |
Implements ProfileBase.
◆ collectRetrieve()
void VelocityAbsProfile::collectRetrieve |
( |
DomainDecompBase * |
domainDecomp, |
|
|
unsigned long |
uID |
|
) |
| |
|
inlinefinalvirtual |
Get global values after AllReduceSum per bin. Write to e.g. _globalProfile.
- Parameters
-
domainDecomp | DomainDecomposition handling the communication. |
uID | uID of molecule in sampling grid, needed to put data in right spot in the profile arrays. |
Implements ProfileBase.
◆ comms()
int VelocityAbsProfile::comms |
( |
| ) |
|
|
inlinefinalvirtual |
1D profiles like a number density profile should return 1 here. 3D profiles that have 3 entries per bin that need to be communicated would need to return 3. Adjust as needed. Same number as commAppends in collectAppend.
- Returns
- Number of nedded communications per bin so the communicator can be setup correctly.
Implements ProfileBase.
◆ output()
void VelocityAbsProfile::output |
( |
string |
prefix, |
|
|
long unsigned |
accumulatedDatasets |
|
) |
| |
|
finalvirtual |
Whatever is necessary to output for this profile.
This function varies wildly between profiles. The Profile should output to its desired format here and handle all file IO for one profile writing step.
- Parameters
-
prefix | File prefix including the global _outputPrefix for all profiles and the current timestep. Should be appended by some specific file ending for this specific profile. |
Implements ProfileBase.
◆ record()
void VelocityAbsProfile::record |
( |
Molecule & |
mol, |
|
|
unsigned long |
uID |
|
) |
| |
|
inlinefinalvirtual |
The recording step defines what kind of data needs to be recorded for a single molecule with a corresponding uID.
- Parameters
-
mol | Reference to Molecule, needed to extract info such as velocity or Virial. |
uID | uID of molecule in sampling grid, needed to put data in right spot in the profile arrays. |
Implements ProfileBase.
◆ reset()
void VelocityAbsProfile::reset |
( |
unsigned long |
uID | ) |
|
|
inlinefinalvirtual |
Used to reset all array contents for a specific uID in order to start the next recording timeframe.
- Parameters
-
uID | uID of molecule in sampling grid, needed to put data in right spot in the profile arrays. |
Implements ProfileBase.
The documentation for this class was generated from the following files: