|
[Sponsors] |
August 7, 2017, 05:48 |
modifying lagrangian library
|
#1 |
Member
Neilson Whit
Join Date: Aug 2011
Posts: 74
Rep Power: 15 |
Dear All
I want to modify the src/lagrangian/intermediate/parcels/Templates/ThermoParcel/* basically, heat transfer from the droplets. I copy whole lagrangian directory to mylagrangian and make changes. It compiles without any problem, but when I run the case it gives some errors for the duplication. is there any practical way of modification of those template classes? |
|
August 13, 2017, 18:57 |
|
#2 | |
New Member
Paul K
Join Date: Aug 2015
Posts: 5
Rep Power: 11 |
Quote:
There are two basic ways: 1. Do a copy of the whole lagrangianintermediate library, do your modifications here and link your solver / sprayFoam (?) against that library. 2. Have a look at how the lagrangianspray library does this and uses parcel/include/*.H and Make/files to create the templates and make sure it is built. You chose 1. Did you use the libs() option in the controlDict? If yes, try linking it at build time (using your lib in Make/options of your solver instead of lagrangianintermediate). That should hopefully do the trick |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lagrangian library: Edit particle properties within force calculation | oswald | OpenFOAM Programming & Development | 8 | April 5, 2018 12:47 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
Modifying OF library | GPL65 | OpenFOAM Programming & Development | 4 | May 16, 2014 10:42 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |
How to use lagrangian tool library | lynx | OpenFOAM Running, Solving & CFD | 1 | April 8, 2008 16:30 |