Merge branch 'master' of github.com-OpenFOAM:OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -71,6 +71,8 @@ int main(int argc, char *argv[])
|
||||
runTime.setTime(timeDirs[timeI], timeI);
|
||||
Info<< "Time = " << runTime.userTimeName() << endl;
|
||||
|
||||
mesh.readUpdate();
|
||||
|
||||
Info<< " Reading particle positions" << endl;
|
||||
passiveParticleCloud myCloud(mesh, cloudName);
|
||||
|
||||
@ -135,6 +137,8 @@ int main(int argc, char *argv[])
|
||||
runTime.setTime(timeDirs[timeI], timeI);
|
||||
Info<< "Time = " << runTime.userTimeName() << endl;
|
||||
|
||||
mesh.readUpdate();
|
||||
|
||||
List<pointField> allPositions(Pstream::nProcs());
|
||||
List<labelField> allOrigIds(Pstream::nProcs());
|
||||
List<labelField> allOrigProcs(Pstream::nProcs());
|
||||
|
||||
30
etc/caseDicts/annotated/particleTracksDict
Normal file
30
etc/caseDicts/annotated/particleTracksDict
Normal file
@ -0,0 +1,30 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object particleTracksDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Name of the cloud for which to create tracks
|
||||
cloudName cloud;
|
||||
|
||||
// Frequency with which tracks are added. E.g., if set to 5, then tracks will
|
||||
// be created for every 5th paricle in the cloud. If set to 1 (as below), then
|
||||
// tracks will be created for every particle in the cloud.
|
||||
sampleFrequency 1;
|
||||
|
||||
// Maximum number of positions in a single track
|
||||
maxPositions 1000000;
|
||||
|
||||
// Format that the tracks are written out in
|
||||
setFormat vtk;
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -9,12 +9,14 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object particleTrackDict;
|
||||
object steadyParticleTracksDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
cloudName reactingCloud1Tracks;
|
||||
// Name of the cloud for which to create tracks
|
||||
cloudName cloud;
|
||||
|
||||
fields ( d U T );
|
||||
// Fields to write out with the tracks
|
||||
fields (d U T);
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -16,12 +16,7 @@ FoamFile
|
||||
|
||||
cloudName cloudTracks;
|
||||
|
||||
fields
|
||||
(
|
||||
d
|
||||
U
|
||||
T
|
||||
);
|
||||
fields (d U T);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -16,12 +16,7 @@ FoamFile
|
||||
|
||||
cloudName cloudTracks;
|
||||
|
||||
fields
|
||||
(
|
||||
d
|
||||
U
|
||||
T
|
||||
);
|
||||
fields (d U T);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user