CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How can I add temperature equation in interfoam (https://www.cfd-online.com/Forums/openfoam-programming-development/127904-how-can-i-add-temperature-equation-interfoam.html)

seju December 25, 2013 09:38

How can I add temperature equation in interfoam
 
Dear foamer, how can I add temperature equation in interfoam? I wanna use this for 2 phase flow.
do you have any references in this field?
best regards

sur4j December 25, 2013 12:22

Hi Seju,

I am a beginner with OpenFOAM and used the following as a reference for adding temperature to existing solvers:

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

It may help you with your simulation.

seju December 26, 2013 16:11

Quote:

Originally Posted by sur4j (Post 467653)
Hi Seju,

I am a beginner with OpenFOAM and used the following as a reference for adding temperature to existing solvers:

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

It may help you with your simulation.

hi sur4j. thanks for reply
add energy eq. to interfoam is diffterent with icoFoam.
best regards
sajad

snak December 27, 2013 07:15

Hi Seju,

compressibleInterFoam in OpenFOAM2.2.2 handles energy eq.

Description from source code...
24 Application
25 compressibleInterFoam
26
27 Description
28 Solver for 2 compressible, non-isothermal immiscible fluids using a VOF
29 (volume of fluid) phase-fraction based interface capturing approach.
30
31 The momentum and other fluid properties are of the "mixture" and a single
32 momentum equation is solved.
33
34 Turbulence modelling is generic, i.e. laminar, RAS or LES may be selected.

seju December 27, 2013 10:03

Quote:

Originally Posted by snak (Post 467840)
Hi Seju,

compressibleInterFoam in OpenFOAM2.2.2 handles energy eq.

Description from source code...
24 Application
25 compressibleInterFoam
26
27 Description
28 Solver for 2 compressible, non-isothermal immiscible fluids using a VOF
29 (volume of fluid) phase-fraction based interface capturing approach.
30
31 The momentum and other fluid properties are of the "mixture" and a single
32 momentum equation is solved.
33
34 Turbulence modelling is generic, i.e. laminar, RAS or LES may be selected.

hi snak,
thanks for reply
my case is not compressible.
can I use this?
best regards
sajad

Mahdi2010 January 13, 2014 08:40

Although your case is not compressible, you may get the idea how to
implement energy equation by over-looking at the solver

seju January 13, 2014 10:30

Quote:

Originally Posted by Mahdi2010 (Post 469810)
Although your case is not compressible, you may get the idea how to
implement energy equation by over-looking at the solver

thanks mehdi. Im trying to do it.

Mahdi2010 February 11, 2014 09:51

Have you got any progress in this implementation?

seju February 11, 2014 13:11

Quote:

Originally Posted by Mahdi2010 (Post 474486)
Have you got any progress in this implementation?

hi Mehdi,
Im so sorry.
I cant to do it.

ahmmedshakil February 27, 2014 00:46

add temperature equation in interfoam
 
2 Attachment(s)
Hi,
I guess this will help you.
interTempFoam is the solver and incompressibleTwoPhaseThermalMixture is the library file. Just compile the solver and the library file... thats it!!!!

cheers
#shakil

ahmmedshakil February 27, 2014 00:56

Also, you can have a look at the thread: http://www.cfd-online.com/Forums/ope...interfoam.html

cheers,
#shakil

seju April 23, 2014 04:09

Quote:

Originally Posted by ahmmedshakil (Post 477026)
Also, you can have a look at the thread: http://www.cfd-online.com/Forums/ope...interfoam.html

cheers,
#shakil

hi Mohammad,thanks for reply. I cant compile the lib. can you help me?
best regards. Sajad

ahmmedshakil April 23, 2014 04:50

What type of problem you are facing ?(did you try with wmake libso ?)

seju April 24, 2014 00:12

Quote:

Originally Posted by ahmmedshakil (Post 487651)
What type of problem you are facing ?(did you try with wmake libso ?)

did you compile that whit wmake libso?
when I type wmake libso I see a error and I ca'nt compile that.:(:(:(
best regards
Sajad

ahmmedshakil April 24, 2014 02:49

please try with that
 
Sorry, I got the problem. It's missing the linking of the library. Right now I'm extremely busy (probably I will fixed it later). Please try with the Qingming's file (Qingming Liu: Impementation of a myinterFoamDiabatic solver with OpenFOAM Slides Report Code Case)
in http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2011/ . It has a good explanation and it must work I guess.

Cheers,
shakil

seju April 24, 2014 07:30

Quote:

Originally Posted by ahmmedshakil (Post 487854)
Sorry, I got the problem. It's missing the linking of the library. Right now I'm extremely busy (probably I will fixed it later). Please try with the Qingming's file (Qingming Liu: Impementation of a myinterFoamDiabatic solver with OpenFOAM Slides Report Code Case)
in http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2011/ . It has a good explanation and it must work I guess.

Cheers,
shakil

dear shakil
thank you so much for reply.
in this link I can't found whats my problem.
I know you are busy but I'm waiting for revise this file in any time because I need this file.
best regards.
Sajad

seju April 30, 2014 09:38

Quote:

Originally Posted by ahmmedshakil (Post 487854)
Sorry, I got the problem. It's missing the linking of the library. Right now I'm extremely busy (probably I will fixed it later). Please try with the Qingming's file (Qingming Liu: Impementation of a myinterFoamDiabatic solver with OpenFOAM Slides Report Code Case)
in http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2011/ . It has a good explanation and it must work I guess.

Cheers,
shakil

Hi Shakil
did you try compile this lib and solver?
best regards
Sajad


All times are GMT -4. The time now is 22:36.