|
[Sponsors] | |||||
Accessing lagrangian data of multiple processors |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Luis Felipe López
Join Date: Apr 2020
Posts: 7
Rep Power: 7 ![]() |
Hi!
I have a custom solver where I export the information of the Lagrangian parcels into a file. For this, I have the following code: Code:
forAllIter(basicSprayCloud, parcels, pIter)
{
sprayVarsFile << pIter().origId() << "\t";
for (label j=0; j<3; j++)
{
sprayVarsFile << pIter().position().component(j) << "\t";
}
for (label j=0; j<3; j++)
{
sprayVarsFile << pIter().U().component(j) << "\t";
}
sprayVarsFile << pIter().d() << "\t" << pIter().T() << "\t" << pIter().rho() << "\t"
<< pIter().nParticle() << "\t" << pIter().Cp() << "\t" << pIter().mu() << "\t"
<< pIter().sigma() << "\t" << pIter().age() << "\t" << pIter().Xi() << "\t"
<< mag(pIter().gradXi()) << "\t" << pIter().elecCh() << "\t"
<< "\n";
}
However, for parallelized cases (multiple processors), the program only exports the data of one of the processors, resulting in missing parcels in the output file. How can I fix this? Is there an alternative that considers the parcels of all the processors? Best regards, Luis Lopez. |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [OpenFOAM] How to get the coordinates of velocity data at all cells and at all times | vidyadhar | ParaView | 9 | May 20, 2020 21:06 |
| studying a valve case | mina.basta | OpenFOAM | 33 | August 30, 2013 05:46 |
| dsmcFoam : writing options : How to keep only field data ? Not Lagrangian | elfuertes | OpenFOAM Running, Solving & CFD | 2 | August 19, 2013 06:05 |
| saving Transient/Unsteady data of multiple surface integrals in single file | ankur gupta | FLUENT | 0 | February 22, 2012 14:59 |
| Accessing solution data in UDF | Ale | FLUENT | 1 | June 12, 2002 01:25 |