CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Lagrangian solver(trackingData& td) (https://www.cfd-online.com/Forums/openfoam-programming-development/228602-lagrangian-solver-trackingdata-td.html)

farzadmech July 7, 2020 11:04

Lagrangian solver(trackingData& td)
 
Dear friends
I have developed the parcel and kinematicCloud in MPPICFoam in order to contain the Oxygen and Nitrogen mass in each parcel. My library and code compiles correctly, but when I run the code, I got an error which says "Segmentation fault (core dumped)" and the error happens exactly at the red line below;

Code:

template<class CloudType>
void Foam::KinematicCloud<CloudType>::evolve()
{
    Info<<"KinematicCloud.C-evolve-FFD1"<<endl;

    if (solution_.canEvolve())
    {
      typename parcelType::trackingData td(*this);

        solve(*this, td);
    }
    Info<<"KinematicCloud.C-evolve-FFD2"<<endl;
}

Could you please explain to me what is "trackingData& td" and where it is defined and how can I change it?


Thanks,
Farzad

oswald July 28, 2020 05:22

You can find "trackingData" in "src/lagrangian/intermediate/parcels/Templates/KinematicParcel/KinematicParcelTrackingData.H", as the filename suggests. It basically holds the interpolators and values for the continuous phase fields.


All times are GMT -4. The time now is 17:40.