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

Combine CHTmultiRegion and InterFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 29, 2013, 03:48
Post Combine CHTmultiRegion and InterFoam
  #1
New Member
 
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 4
Nazanin is on a distinguished road
Hi every Body
I want Simulate two phase flow with conjugate heat transfer.I worked with interFoam solver but I don't have any experience about CHTmultiregionFoam and how add my fluid solver instead fluid part of this solver.any body have experience about this??
or another way,just add solid region in my base solver??which way is better??
Regards,
Nazanin is offline   Reply With Quote

Old   December 30, 2013, 07:35
Default
  #2
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Magdeburg/Geneva
Posts: 179
Blog Entries: 1
Rep Power: 8
Linse is on a distinguished road
Hi Nazanin,

from my experience with the cht-family, the very basics should be rather straightforward.
In the code for the cht-solver you will find one folder called "solid" (to remain untouched) and one folder called "fluid". The latter one holds the main part of the code for the fluid.
I would suggest replacing that part of the solver with your own solver.

I do not see any critical show-stoppers at the moment, though some compilation errors should be expected in the beginning.
I do not know the code behind interFoam. But it might be necessary to think about the timestep-management, as at least part of this is done by the combination framework.

Introducing a two-region treatment into another solver I personally deem quite challenging - but I have never done that, so it could be simple as well...

Cheers,
Bernhard
Linse is offline   Reply With Quote

Old   December 30, 2013, 10:37
Default
  #3
New Member
 
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 4
Nazanin is on a distinguished road
Quote:
Originally Posted by Linse View Post
Hi Nazanin,

from my experience with the cht-family, the very basics should be rather straightforward.
In the code for the cht-solver you will find one folder called "solid" (to remain untouched) and one folder called "fluid". The latter one holds the main part of the code for the fluid.
I would suggest replacing that part of the solver with your own solver.

I do not see any critical show-stoppers at the moment, though some compilation errors should be expected in the beginning.
I do not know the code behind interFoam. But it might be necessary to think about the timestep-management, as at least part of this is done by the combination framework.

Introducing a two-region treatment into another solver I personally deem quite challenging - but I have never done that, so it could be simple as well...

Cheers,
Bernhard
Hi Bernhard
Thank you very much for Reply.
I see the fluid part of CHT solver,and I think this reform is more difficult from what you said.
InterFoam is for incompressible fluid,but I think CHT for compressible fluid.can we change this solver for incompressible?
Best
Nazanin is offline   Reply With Quote

Old   December 31, 2013, 04:54
Default
  #4
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,189
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
it is possible to change the solver to satisfy your need, of course you should modify coupled BC for your applications too
1- read CHT solver
2- replace fluid solver with interFoam
3- add suitable variables
4-change the communication way of two regions

ofcourse you need to put time and effort , its some how time consuming for newbie
__________________
Telegram channel (https://telegram.me/openfoam4Iranian)
My Weblog (http://openfoam.blogfa.com/)
Training Course on OpenFOAM at (http://www.isme.ir/)
nimasam is offline   Reply With Quote

Old   December 31, 2013, 12:48
Default
  #5
New Member
 
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 4
Nazanin is on a distinguished road
Quote:
Originally Posted by nimasam View Post
it is possible to change the solver to satisfy your need, of course you should modify coupled BC for your applications too
1- read CHT solver
2- replace fluid solver with interFoam
3- add suitable variables
4-change the communication way of two regions

ofcourse you need to put time and effort , its some how time consuming for newbie
Thank you Nima
I don't have experience about CHT solver,but I worked with another solver last.
yes,I should try and I hope if I have a problem, hope help me.
Best;
Nazanin is offline   Reply With Quote

Old   January 9, 2014, 01:54
Default
  #6
New Member
 
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 4
Nazanin is on a distinguished road
Quote:
Originally Posted by nimasam View Post
it is possible to change the solver to satisfy your need, of course you should modify coupled BC for your applications too
1- read CHT solver
2- replace fluid solver with interFoam
3- add suitable variables
4-change the communication way of two regions

ofcourse you need to put time and effort , its some how time consuming for newbie
Dear Nima
I could add interFoam solver to CHT and Compile without any error..But I dont know modified solver is correct or have problem.now I want test this solver with a test case,but I dont have idea how create a test case for this solver..
Do you have test case like this (for interFoam or twophase fluid and CHT),that help me how create test case??
my mail is:eli.nazanin66@gmail.com
Thank you
Nazanin is offline   Reply With Quote

Old   January 9, 2014, 02:12
Default
  #7
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,189
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
well, i dont have any test case, its not hard task , if you know how to create a chtMultiregion test case, then you need only change fluid variables with two-phase variables
__________________
Telegram channel (https://telegram.me/openfoam4Iranian)
My Weblog (http://openfoam.blogfa.com/)
Training Course on OpenFOAM at (http://www.isme.ir/)
nimasam is offline   Reply With Quote

Old   February 9, 2014, 09:19
Default
  #8
New Member
 
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 4
Nazanin is on a distinguished road
Quote:
Originally Posted by nimasam View Post
well, i dont have any test case, its not hard task , if you know how to create a chtMultiregion test case, then you need only change fluid variables with two-phase variables
Dear Nima
when I want create test case for my combine solver (and Find my mistakes) I see this error in my case:
Code:
--> FOAM FATAL ERROR: 

    request for volScalarField alpha1 from objectRegistry water failed
    available objects of type volScalarField are

2
(
nu1
nu2
)
do you what is my mistake in implementation Solver??
Nazanin is offline   Reply With Quote

Old   February 9, 2014, 09:42
Default
  #9
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,189
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
well, it seems alpha1 variable has not been introduced in solvers and compiler suggest available variables
__________________
Telegram channel (https://telegram.me/openfoam4Iranian)
My Weblog (http://openfoam.blogfa.com/)
Training Course on OpenFOAM at (http://www.isme.ir/)
nimasam is offline   Reply With Quote

Old   February 9, 2014, 14:24
Default
  #10
New Member
 
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 4
Nazanin is on a distinguished road
Quote:
Originally Posted by nimasam View Post
well, it seems alpha1 variable has not been introduced in solvers and compiler suggest available variables
Dear Nima
Thank You For reply;
I dont good understand your guide.
well I put alphaEqn & alphaEqnSubcycle &anlphaCourant in my solver (fluid part) and define in creatFluides.h
Code:
PtrList<volScalarField> alpha1Fluid(fluidRegions.size());
 Info<< "    Adding to alpha1Fluid\n" << endl;
        alpha1Fluid.set
        (
            i,
            new volScalarField
            (
                IOobject
                (
                    "alpha1",
                    runTime.timeName(),
                    fluidRegions[i],
                    IOobject::MUST_READ,
                    IOobject::AUTO_WRITE
                ),
        	fluidRegions[i]
            )
        );
So I think interdused alpha1 in my solver?? what is your opinion?
Nazanin is offline   Reply With Quote

Old   February 9, 2014, 14:38
Default
  #11
New Member
 
Nazanin
Join Date: Sep 2013
Posts: 22
Rep Power: 4
Nazanin is on a distinguished road
Quote:
Originally Posted by nimasam View Post
well, it seems alpha1 variable has not been introduced in solvers and compiler suggest available variables
Dear Nima
where is define nu in interfoam?? in transportmodels/incompresible/viscosityModels/....??
am I right? this code should read nu1 and nu2 from this file,But can't???
Nazanin is offline   Reply With Quote

Old   February 9, 2014, 17:50
Default
  #12
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,189
Blog Entries: 1
Rep Power: 15
nimasam is on a distinguished road
1- its hard to say where the problem is , as it seems you enter alpha1 variable in your code. but it seems binary code can not find alpha1 in available volScalarField, why? i dont know

Quote:
where is define nu in interfoam?? in transportmodels/incompresible/viscosityModels/....??
yes it is

Quote:
this code should read nu1 and nu2 from this file,But can't???
it can read nu1 and nu2 but your solver can not find alpha1
__________________
Telegram channel (https://telegram.me/openfoam4Iranian)
My Weblog (http://openfoam.blogfa.com/)
Training Course on OpenFOAM at (http://www.isme.ir/)
nimasam is offline   Reply With Quote

Old   May 5, 2015, 09:10
Default
  #13
Member
 
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 59
Rep Power: 5
vigneshTG is on a distinguished road
Hi everyone,

I would like to know if anyone was able to combine successfully the chMultiregionFoam and interFoam. If so, can you explain me the steps ....

I would like to simulate drop spreading/impact on hot/cold surfaces.
__________________
Thanks and Regards

Vignesh
vigneshTG is offline   Reply With Quote

Old   August 14, 2015, 04:56
Default
  #14
Member
 
Mahdi S
Join Date: Jul 2012
Posts: 34
Rep Power: 6
Mahdi2010 is on a distinguished road
Did anybody make progress in coupling interFoam with chMultiregionFoam solver?I have tried, but since the VOF algorithm in interFoam (OF 2.3) has been changed a bit, I have seen some errors. Apart from that does anybody know how to transfer :

tmp<surfaceScalarField> tphiAlphaCorr0


from the alphaEqn.H of interFoam to the CHT? I mean every variable should be re-defined in createFluidFields.H in the form of "PtrList<...>", but the tmp variables may have different way. right?
Mahdi2010 is offline   Reply With Quote

Old   October 30, 2015, 13:45
Default Any Update on Coupling InterFoam with Conjugate Heat Transfer?
  #15
Member
 
Anastasios
Join Date: Mar 2009
Posts: 32
Rep Power: 9
ageorg is on a distinguished road
Dear All,

Is there any progress on this matter? Did anyone managed to couple the solvers?

Thanks in advance,

Ageing
ageorg is offline   Reply With Quote

Old   February 29, 2016, 20:02
Default Any news on CHT + IntarFoam
  #16
Member
 
Anastasios
Join Date: Mar 2009
Posts: 32
Rep Power: 9
ageorg is on a distinguished road
Dear All

Did anyone managed to successfully couple interFoam with chtMultiRegionFoam?
Thank you very much in advance

Ageorg
ageorg is offline   Reply With Quote

Old   May 11, 2016, 12:29
Default
  #17
New Member
 
Yaoyina
Join Date: Sep 2014
Posts: 7
Rep Power: 3
yaoyina is on a distinguished road
Dear All

Did anyone managed to successfully couple the two solvers? Can you share with us if possible?
Thank you very much in advance
yaoyina is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:50.