joshwilliams |
July 31, 2023 05:21 |
Quote:
Originally Posted by xhan
(Post 854319)
Hi,
Thanks for sharing your idea, cjc96.
However, when i followed all your comment above and compiled my new intermediate, there was always an error message "class 'Foam::KinematicParcel<parceltype>'does not have any field named globalpos".
I have no idea how to deal with this. could you please tell us more details of your idea?
|
You need to add 'globalPos' to the header files (you are defining a new field, adding to headers is a standard task in C++). Also, he did not share the code for the actual IO part. Since the p.position already exists, my suggestion is just modify KinematicParcelIO.C
You can copy the code in the IO C file, where a particle field is defined such as p.UTurb() and add similar code for p.position().
|