extra term twophasesystem.C
-
I am confused that why no convective term in that equation.
Don't bother with the convection term. It was handled by explicit FCT scheme. So if you manage to add the diffusion term, it should work.
And after I compile this twophasesystem.C file, how can I link it to the solver file?
If you modify the original file, you dont need to link it, it is linked automatically
-
@东岳 Hi Dongyue, it works. Now I am trying to add it into user's library. I changed the Make/files as following and I include "libmycompressibleTwoPhaseSystem" in system/controDict, but the solver neglect it. I really don't know how to make the solver to call the modified "twophasesystem.C", or I need to change the name of "twophasesystem.C". Do you have any suggestion? Thanks.
LIB = $(FOAM_USER_LIBBIN)/libmycompressibleTwoPhaseSystem
-
@东岳 Hi, dongyue. I tried many ways to reach my goal, such as create a newtwophasesystem.C (I found this file in the reactingtwophaseeulerfoam, so it should be possible to use a new one) and compile. But I still cannot link the new file to the solver if I put it in the user's library. Do you have any suggestion? Many Thanks.
-
the easy way:
cd \$FOAM_LIBBIN/ mv libcompressibleTwoPhaseSystem.so libcompressibleTwoPhaseSystem.so.bk cp \$FOAM_USER_LIBBIN/libmycompressibleTwoPhaseSystem.so ./libcompressibleTwoPhaseSystem.so
the best best way:
add below line in solver's Make/options file
-L$(FOAM_USER_LIBBIN) \ -lmycompressibleTwoPhaseSystem
make sure every line have "\" end except last line.