Segmentation fault with particleTracks
Hello,
I'm trying to generate particle tracks using the particleTracks utility from trajectories obtained from solidParticleFoam. The output ends with the following: Code:
... My particleTracksProperties file: Code:
I can try to provide any additional information that would help in diagnosing the problem. Thanks in advance, Greg |
I have just now tried to run this using the gdb debugger. The results aren't particularly informative to me (looks like the crash is in the main() function), but my hope is that they will be meaningful to someone else:
Code:
... |
I think I've figured out the problem and came up with a way to address this.
I added some debugging lines to determined that was related to insufficient origId information; the code was storing -1 for all the IDs and the code was crashing on the line "if (allTracks[trackId].size() < maxPositions)" with trackId equal to -1. It turns out that I wasn't aware of the need for origId and origProcId files when I ran solidParticleFoam (which I used to generate the trajectories); solidParticleFoam didn't seem to require origID or origProcID in the 0/lagrangian/defaultCloud directory (actually, technically, I'm using 39400 as starting time here), and when I ran solidParticleFoam, it filled subsequent time directories with "1000{-1}" and "1000{0}" for these files, respectively. If I instead put origID and origProcID in the 0/lagrangian/defaultCloud directory, filled with contents like shown below, before running solidParticleFoam, then subsequent use of particleTracks works fine, and without error. Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Hi,
I have a similar problem. But your solution didn't work on mine. I am using DPMFoam on OF 2.3. neither it worked on my own solver in which I added particle tracking library into icoFoam. In both serial and parallel runs I get the following error: Code:
#0 Foam::error::printStack(Foam::Ostream&) at ??:? origId: Code:
9(0 1 2 3 4 5 6 7 8) Code:
9{0} Here is my particleTrackProperties file: Code:
cloudName kinematicCloud; |
I think I found a solution.
Changing the setFormat into vtk seems to solve the problem. However I don't know why raw or csv formats don't work yet. |
All times are GMT -4. The time now is 08:58. |