Compiling meltFoam solver
1 Attachment(s)
Hi,
I'm having a lot of trouble compiling the meltFoam solver, used for modelling melting and solidification. I have been using the wclean then wmake all tools, however I am repeatedly getting the error that /opt/openfoam240/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory #include "cyclicAMILduInterface.H" This comes after a string of other files being included from /opt. Does anyone have a way to get around this error? The terminal readout is attached. Thank you. |
Hi,
Code:
$ cd $FOAM_SRC Code:
-I$(LIB_SRC)/meshTools/lnInclude |
Thanks Alexeym,
I downloaded a different copy of meltFoam from this site that included Code:
-I$(LIB_SRC)/meshTools/lnInclude Now I am having the issue that, upon running the meltFoam test case, I am getting the error: Code:
--> FOAM FATAL IO ERROR: Thanks again. |
Hi,
In 2.3.0 buoyantPressure BC was removed in favor of fixedFluxPressure. See tutorial examples in tutorials/heatTransfer/buoyantBoussinesqPimpleFoam (since meltFoam is just derivative of buoyantBoussinesqPimpleFoam with Darcy term in momentum equation and solidification path in temperature equation). |
Ok, so by changing to fixedFluxPressure it progressed past where it got stuck last time, however now it is getting to the transportProperties and giving the erro:
Code:
--> FOAM FATAL IO ERROR: Thanks |
cpS or cps? Be careful with the lower and upper cases
|
Changing it from cpS to cps seems to have worked, although other transportProperties files I have seen always keep it as cpS. Now I am getting
Code:
--> FOAM FATAL IO ERROR: |
It is as easy as adding a new entry to your transportProperties with the name, value and dimensions of mu (dynamic viscosity)
|
Hi,
I think it would be easier for everybody if you post link to the code. Meaning of mu could be dynamic viscosity (as ssss proposed) or anything else (as author of the code supposed). |
Ok, here is the transportProperties file from the meltFoam tutorial, I have left it as it was originally before changing the cpS etc to lower case. Header has been omitted. To me it seems strange that it would need me to put mu in, as laminar liquid and solid viscosity are already defined.
Code:
FoamFile |
Ok, so having had no luck replaced the nuS and nuL values with mu (as they were both the same), I continued encountering errors as it asked for parameters with different names than what the meltFoam tutorial had. I am retrying the compilation with a different version of the solver, and am getting the error:
Code:
mick223@mick223-H81M-S2H:~/OpenFOAM/mick223-2.4.0/run/meltFoam$ wmake Thanks. |
No need to fiddle about the code
You can't just remove the kinematic viscosity from the transport properties. The solver is incompressible and thus uses nu instead of mu. the new boundary condition fixedFluxPressure seems to need dynamic viscosity. So what?
Just add mu as second viscosity by multiplying nu with rho, which is also constant and the same value for both phases, to the transport properties. You don't have to change the code but are welcome to do so and post a version for OF 2.4.x Cheers Fabian |
Thanks for the advice. As it stands I've installed OF2.2.2 so as to be able to use the meltFoam solver and case files I need, which is working so far. The issue I was having before was not limited to the case file and was a result of the changes to OF since the meltFoam solver I was using was posted, these changes including the transition from ddtPhiCorr to ddtCorr in the solver, as well as others I was not able to fix.
I'm new to OF but I'll revisit trying to get it to work on 2.4.x once I've finished the current project. Thanks again, Mick. |
All times are GMT -4. The time now is 23:16. |