CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Adding the heat-equation to multiphaseInterFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2018, 10:26
Question Adding the heat-equation to multiphaseInterFoam
New Member
Join Date: Dec 2018
Posts: 19
Rep Power: 4
arsimons is on a distinguished road
Hi everybody

I am new to OpenFOAM. As a start, I took the online lessons on YouTube (by József Nagy). I believe I understand what was explained in these lessons.

By now, I know that besides the folder 'Tutorials' (containing cases, and thus the 'system'-folder, the 'constant'-folder and the '0'-folder), there is also such a thing as the 'Solvers'-folder. This folder contains the same folders (the name of the solvers) but has other subfolders.

The reason that I mention all this is to proof that I did my research in order to find the answer to my question. Furthermore, I also found the tutorial to add the heat-equation to icoFoam ( and a thread on this forum from someone with the exact same question as me (Add Temperature to multiphaseInterFoam). Unfortunately, I am still stuck.

I am actually already stuck in a early phase, I cannot copy the solver and compile it. I have changed (= add '_USER') the 'files'-file in the 'Make'-folder twice (once in the main folder and once in the 'multiphaseMixture'-folder. However, when I try to compile, I get the following error:
[ofuser@default multiphaseTempInterFoam]$ wmake
make: Warning: File `Make/linux64GccDPInt32Opt/variables' has modification time 0.00049 s in the future
make: warning: Clock skew detected. Your build may be incomplete.
Making dependency list for source file multiphaseTempInterFoam.C
wmkdepend: could not open 'multiphaseMixture.H' for source file 'multiphaseTempInterFoam.C': No such file or directory
g++ -std=c++11 -m64 -DOPENFOAM=1806 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I. -I../VoF -I../interFoam -ImultiphaseMixture/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/transportModels -I/opt/OpenFOAM/OpenFOAM-v1806/src/transportModels/incompressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/transportModels/interfaceProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/TurbulenceModels/turbulenceModels/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/TurbulenceModels/incompressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/dynamicFvMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/meshTools/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/sampling/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v1806/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v1806/src/OSspecific/POSIX/lnInclude -fPIC -c multiphaseTempInterFoam.C -o Make/linux64GccDPInt32Opt/multiphaseTempInterFoam.o
multiphaseTempInterFoam.C:37:31: fatal error: multiphaseMixture/lnInclude/multiphaseMixture.H: Protocol error
#include "multiphaseMixture.H"
compilation terminated.
make: *** [Make/linux64GccDPInt32Opt/multiphaseTempInterFoam.o] Error 1

I believe my problem is that I don'n know enough about how this compilation work. Are there any tutorials online where I could find this? I found one (also for icoFoam) and that worked well. However, icoFoam does not have the additional folder 'multiphaseMixture'.

Thanks in advance for all your help.

Best regards

PS: I will probably have some issues with the implementation of the heat-equation as well, but I think I need to compile before I can try to find those.

Last edited by arsimons; December 18, 2018 at 03:44. Reason: add post-icon
arsimons is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 05:37
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 07:55
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 39 March 31, 2016 08:43
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00

All times are GMT -4. The time now is 03:25.