|
[Sponsors] |
how to compile a new CloudFunctionObjects for lagrangian module? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 6, 2024, 22:24 |
how to compile a new CloudFunctionObjects for lagrangian module?
|
#1 | |
New Member
Bill
Join Date: Jun 2017
Posts: 17
Rep Power: 9 |
My issue is listed as follows:
(1) Purpose: I need to comiple a new CloudFunctionObjects for my lagrangian particle tracking. (2) Issue: The "openfoam9/src/lagrangian/parcel/Make" folder in the openfoam source code didnot have codelines containning "CloudFunctionObjects". So It is not clear how the "CloudFunctionObjects" libraries are compiled in openfoam 9. (3) From my experience of openfoam programming, we can find the "Make" folder in openfoam source code that is used to compile the code. If we want to generate a new function or solver that is based on the source code, we can develop new "Make" folder based on the existing similar one in the source code. I have generated multiple user-defined functions/solvers by using this kind of procedures. But, at this time, in the source code of the "openfoam9/src/lagrangian/parcel/Make" foder, the "files" file didnot have any codelines containing "CloudFunctionObjects" while the source ".C" and ".H" files of "CloudFunctionObjects" are found in the "openfoam9/src/lagrangian/parcel/lnInclude" folder. This is weird for me. As far as I know, the lnInclude foder should be generated based on make folder. If "CloudFunctionObjects" is not contained in make folder, why the the source ".C" and ".H" files can be added in the lnInclude foder? Could anyone help me with this issue? The "openfoam9/src/lagrangian/parcel/Make/files" is as follows: Quote:
Last edited by Bill_Yang; November 6, 2024 at 22:27. Reason: more details |
||
November 7, 2024, 05:45 |
|
#2 |
Senior Member
|
Is CloudFunctionObject an example of a function object whose compilation is triggered by the function object machinery as part of running the solver?
I imagine this is easy to verify. |
|
November 14, 2024, 01:40 |
|
#3 |
New Member
Bill
Join Date: Jun 2017
Posts: 17
Rep Power: 9 |
Thank you for your reply. I think it is not.
I managed to solve this problem. Just in case other person has similar issue. The cloudfunctionobjects are hiddened in the files named "/opt/openfoam9/src/lagrangian/parcel/parcels/include/makeParcelCloudFunctionObjects.H". So, we need to recompile ''parcels" in lagrangian folder to develop our own models inside ''parcels" in lagrangian folder. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] [GUIDE] How to compile OpenFOAM source on a cluster/server with no admin rights | gabrielfelix | OpenFOAM Installation | 1 | July 5, 2022 06:18 |
InterFOAM water channel case Error | mkjmalik | OpenFOAM Running, Solving & CFD | 4 | August 23, 2020 12:32 |
Why is my rhopimplefoam crashing? | marxlolop | OpenFOAM Running, Solving & CFD | 1 | January 6, 2019 17:39 |
cyclicAMI bc with two neighbouring patches | Thecomebackkid | OpenFOAM Pre-Processing | 5 | August 16, 2018 10:12 |
Can someone PLEASE document the development version installation | bernd | OpenFOAM Installation | 76 | November 14, 2008 22:51 |