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/)
-   -   what does 'cloud' in TrackCloudType& cloud refer to? (https://www.cfd-online.com/Forums/openfoam-programming-development/242874-what-does-cloud-trackcloudtype-cloud-refer.html)

Jasper Z May 16, 2022 22:48

what does 'cloud' in TrackCloudType& cloud refer to?
 
Dear all,

I am looking at KinematicParcelTrackingDataI.H in the lagrangian library, but I don't know what the 'cloud' in TrackCloudType& cloud stands for? In the following codes:

Code:

template<class ParcelType>
template<class TrackCloudType>
inline Foam::KinematicParcel<ParcelType>::trackingData::trackingData
(
    const TrackCloudType& cloud,
    trackPart part
)
:
    ParcelType::trackingData(cloud),
    rhoInterp_
    (
        interpolation<scalar>::New
        (
            cloud.solution().interpolationSchemes(),
            cloud.rho()
        )
    ),

cloud calls the functions solution(). and rho(), but when I change them to a random letter, e.g., change rho() to a(), and wmake can still compile the library. I want to know why does this happen? What is the 'cloud' here?


All times are GMT -4. The time now is 14:24.