Error messages

When errors occur during simulation, the code may display error messages to help identify the issue. The two common error messages that may be displayed are "segmentation fault" and "I could not find initial position of PID".

If a "segmentation fault" error occurs, it may indicate an issue with the simulation setup. Some possible causes include missing directories or files, such as the result directory, mesh files, or CFD simulation result with proper fields. Another potential issue is the absence of a particle directory that contains the particleSet and conditions files. To address this issue, you should check that all necessary directories and files are present. You should also ensure that the simulation setup is correct and that the simulation is being run with the proper command.

If a you see "I could not find initial position for PID xxx", it may indicate that there is an issue with the initial conditions set for the particle position in the simulation. To address this issue, you should check the particles are initially located inside of the calculation domain.

Check list

  • Did you create result directory?

  • Did you create particle directory and does it contain condition and particleSet files?

  • Is there constant/polyMesh directory and does it contain mesh files?

  • Do you have CFD result directory?

  • The CFD result directory contain U and p fields?

  • If the compressible is considered, are there T and rho files?

  • If the turbulent dispersion is considered, are there k and omega (or epsilon) files?

  • Did you set proper directory name for CFD result in condition file?

  • Are all of initial particle position in the calculation domain?

    -> You can briefly check range of calculation domain from paraFoam.

Last updated