|
[Sponsors] |
May 15, 2014, 11:22 |
Modifying OF library
|
#1 |
New Member
Join Date: May 2014
Posts: 4
Rep Power: 12 |
Hi,
I'm a new forum user and I hello everyone, sorry for my english. I'm trying to modify a OF library (KinematicCloud.H) but I don't want overwrite the program files. Is it possible to put the user file in another location and link to it? |
|
May 16, 2014, 08:00 |
|
#2 |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
KinematicCloud.H is part of a templated library. It's not straight forward to make changes to KinematicCloud.H without recompiling the whole shebang, i.e. liblagrangianIntermediate.
What are you trying to do? |
|
May 16, 2014, 10:16 |
|
#3 |
New Member
Join Date: May 2014
Posts: 4
Rep Power: 12 |
I have written a modify to this template class (I have added a function to this class), to do not overwrite the existing library I have copied it to my user source dir and I have compiled to my user lib dir, then I link solver to it (w/ Make/options files).
Is it a good job? Thank you for patience. |
|
May 16, 2014, 10:25 |
|
#4 |
Senior Member
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19 |
I doubt that this will work just like that. Though I'm not quite sure.
So you are just interested in a KinematicCloud? No thermodynamics, collisions, ... |
|
May 16, 2014, 10:42 |
|
#5 |
New Member
Join Date: May 2014
Posts: 4
Rep Power: 12 |
It seems to work, I wrote a function that calculate the penetration of a scalarField along injector direction, because I will use this function more and more I have inserted in this class (in analogy with liquid penetration)
My doubt is on the "orthodoxy" of this method, there is a smarter solution? // Example of Make/options EXE_INC = \ -I../include \ -I$(FOAM_SOLVERS)/lagrangian/reactingParcelFoam \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I${LIB_SRC}/meshTools/lnInclude \ -I${LIB_SRC}/sampling/lnInclude \ -I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(FOAM_USER_SRC)/lagrangian/intermediate/lnInclude \ -I$(LIB_SRC)/lagrangian/spray/lnInclude \ -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \ -I$(LIB_SRC)/ODE/lnInclude \ -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude EXE_LIBS = \ -L$(FOAM_USER_LIBBIN) \ -lfiniteVolume \ -lmeshTools \ -lsampling \ -lcompressibleTurbulenceModel \ -lcompressibleRASModels \ -lcompressibleLESModels \ -llagrangian \ -llagrangianTurbulence \ -llagrangianSpray \ -llagrangianIntermediate \ -lspecie \ -lfluidThermophysicalModels \ -lliquidProperties \ -lliquidMixtureProperties \ -lsolidProperties \ -lsolidMixtureProperties \ -lthermophysicalFunctions \ -lreactionThermophysicalModels \ -lSLGThermo \ -lchemistryModel \ -lradiationModels \ -lODE \ -lregionModels \ -lsurfaceFilmModels \ -lfvOptions \ -lcombustionModels |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Multi species mass transport library [update] | novyno | OpenFOAM Community Contributions | 111 | November 10, 2021 00:37 |
ERROR: unable to find library | HJH | CFX | 6 | February 26, 2019 07:52 |
problem loading UDF library in parallel cluster | Veera Gutti | FLUENT | 8 | July 26, 2016 08:24 |
Compiled library vs. inInclude Files, DSMC solver crashes after run | GPesch | OpenFOAM Programming & Development | 8 | April 18, 2013 08:17 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |