CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

adding temperature term in interFoam at OP-v1906

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2020, 10:23
Default adding temperature term in interFoam at OP-v1906
  #1
New Member
 
Hito
Join Date: Dec 2019
Posts: 2
Rep Power: 0
hitos001 is on a distinguished road
Dear All,

Now I am trying to modify OF interFoam solver adding Temperature term, I refer to GitHub sled describing "interTempFoam".

https://github.com/jwm349/interTempFoam

I am not sure which version of OF he will use and develop the "interTempFoam". I am modifying at OF-v1906, but when I compiled the "interTempMixingFoam", error showed up as like attached.

previously pasted error was vanished when I proceeded to modify the MULES.H, but I still have the error attached.

In file included from /home/joon/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/postProcess.H:133:0,
from interTempMixingFoam.C:63:
./createFields.H: In function ‘int main(int, char**)’:
./createFields.H:64:27: warning: unused variable ‘Pr1’ [-Wunused-variable]
const dimensionedScalar& Pr1 = mixture.Pr1();
^
./createFields.H:65:27: warning: unused variable ‘Pr2’ [-Wunused-variable]
const dimensionedScalar& Pr2 = mixture.Pr2();
^
./createFields.H:66:27: warning: unused variable ‘Pr3’ [-Wunused-variable]
const dimensionedScalar& Pr3 = mixture.Pr3();
^
In file included from interTempMixingFoam.C:147:0:
../UEqn.H:9:25: error: ‘fvOptions’ was not declared in this scope
fvOptions(rho, U)
^
In file included from interTempMixingFoam.C:71:0:
createFields.H:64:27: warning: unused variable ‘Pr1’ [-Wunused-variable]
const dimensionedScalar& Pr1 = mixture.Pr1();
^
createFields.H:65:27: warning: unused variable ‘Pr2’ [-Wunused-variable]
const dimensionedScalar& Pr2 = mixture.Pr2();
^
createFields.H:66:27: warning: unused variable ‘Pr3’ [-Wunused-variable]
const dimensionedScalar& Pr3 = mixture.Pr3();
^
/home/joon/OpenFOAM/OpenFOAM-v1906/wmake/rules/General/transform:34: ターゲット 'Make/linux64GccDPInt32Opt/interTempMixingFoam.o' のレシピで失敗しました
make: *** [Make/linux64GccDPInt32Opt/interTempMixingFoam.o] エラー 1

I am not sure the reason why these error show up.
I f you have experience about similar modification of OF-v1906 solver, would you give me any hint ?
Attached Files
File Type: txt 20200116_interTempMixingFoam compile error.txt (895 Bytes, 11 views)

Last edited by hitos001; January 20, 2020 at 15:41.
hitos001 is offline   Reply With Quote

Old   December 7, 2020, 07:44
Default interTempFoam
  #2
New Member
 
lechung
Join Date: Nov 2017
Posts: 2
Rep Power: 0
chungle is on a distinguished road
me too
i dont know how to doing pefect add teamperature in VOF interFoam
chungle is offline   Reply With Quote

Old   December 7, 2020, 07:48
Default
  #3
New Member
 
lechung
Join Date: Nov 2017
Posts: 2
Rep Power: 0
chungle is on a distinguished road
Quote:
Originally Posted by hitos001 View Post
Dear All,

Now I am trying to modify OF interFoam solver adding Temperature term, I refer to GitHub sled describing "interTempFoam".

https://github.com/jwm349/interTempFoam

I am not sure which version of OF he will use and develop the "interTempFoam". I am modifying at OF-v1906, but when I compiled the "interTempMixingFoam", error showed up as like attached.

previously pasted error was vanished when I proceeded to modify the MULES.H, but I still have the error attached.

In file included from /home/joon/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude/postProcess.H:133:0,
from interTempMixingFoam.C:63:
./createFields.H: In function ‘int main(int, char**)’:
./createFields.H:64:27: warning: unused variable ‘Pr1’ [-Wunused-variable]
const dimensionedScalar& Pr1 = mixture.Pr1();
^
./createFields.H:65:27: warning: unused variable ‘Pr2’ [-Wunused-variable]
const dimensionedScalar& Pr2 = mixture.Pr2();
^
./createFields.H:66:27: warning: unused variable ‘Pr3’ [-Wunused-variable]
const dimensionedScalar& Pr3 = mixture.Pr3();
^
In file included from interTempMixingFoam.C:147:0:
../UEqn.H:9:25: error: ‘fvOptions’ was not declared in this scope
fvOptions(rho, U)
^
In file included from interTempMixingFoam.C:71:0:
createFields.H:64:27: warning: unused variable ‘Pr1’ [-Wunused-variable]
const dimensionedScalar& Pr1 = mixture.Pr1();
^
createFields.H:65:27: warning: unused variable ‘Pr2’ [-Wunused-variable]
const dimensionedScalar& Pr2 = mixture.Pr2();
^
createFields.H:66:27: warning: unused variable ‘Pr3’ [-Wunused-variable]
const dimensionedScalar& Pr3 = mixture.Pr3();
^
/home/joon/OpenFOAM/OpenFOAM-v1906/wmake/rules/General/transform:34: ターゲット 'Make/linux64GccDPInt32Opt/interTempMixingFoam.o' のレシピで失敗しました
make: *** [Make/linux64GccDPInt32Opt/interTempMixingFoam.o] エラー 1

I am not sure the reason why these error show up.
I f you have experience about similar modification of OF-v1906 solver, would you give me any hint ?
please contact me if you want.
my email: chungletran@gmail.com
if you and me together doing, i thing have DONE!
thank you!
chungle is offline   Reply With Quote

Reply


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
How to add Source term (2) for PYROLYSIS - reactingOneDim Kummi OpenFOAM 10 April 12, 2021 21:11
Energy Equation - Adding source term cfdsolver1 OpenFOAM Running, Solving & CFD 9 February 21, 2018 10:52
Add source term in alphaEqn.H of interFoam tayo OpenFOAM 1 October 23, 2013 03:40
abnormal temperature near interface when adding energy equation to interFoam houkensjtu OpenFOAM 4 June 26, 2013 13:40
Adding temperature field to InterFoam yapalparvi OpenFOAM Running, Solving & CFD 8 October 14, 2009 20:18


All times are GMT -4. The time now is 01:30.