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

solving multiphysics in subdomain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2016, 13:27
Default solving multiphysics in subdomain
  #1
New Member
 
exw599
Join Date: Jan 2016
Posts: 6
Rep Power: 10
exw599 is on a distinguished road
Hello everyone,

I was using porousSimpleFoam to solve the fluid velocity field of the flow passing a U-shape porous bed. I also want to take the porous subdomain as a solid chunk and solve the stress field using solidDisplacementFoam.

I know you could write additional equations in your own solver to couple different physics, but I just can not find a way to ONLY solve the additional equations in PART of the whole domain (since porous domain is only a fraction of the entire domain).

Any suggestions and helps would be appreciated.
exw599 is offline   Reply With Quote

Old   February 16, 2016, 09:39
Default
  #2
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
You should take a look at how multi-region solvers are written. In short, you load different meshes and their fields and solve the equations separately on them. You might need boundary conditions to couple the values between the regions.
chriss85 is offline   Reply With Quote

Old   February 16, 2016, 10:29
Default
  #3
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
A simple alternative is to multiply your equation system with an indicator field which is 1 only where you want the equations to be solved.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   February 17, 2016, 15:40
Default
  #4
New Member
 
exw599
Join Date: Jan 2016
Posts: 6
Rep Power: 10
exw599 is on a distinguished road
Thank you both for your replies, I have checked the multi region solvers but it seems to decompose the whole domain and solve different equations on each subdomain. Maybe a more practical approach for me is to output the results from a sub-region and make it serve as the initial condition for another solver. I am searching for the method to output VectorField only from a sub-region.
exw599 is offline   Reply With Quote

Old   May 15, 2016, 22:25
Default
  #5
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11
cfdopenfoam is on a distinguished road
Quote:
Originally Posted by exw599 View Post
Thank you both for your replies, I have checked the multi region solvers but it seems to decompose the whole domain and solve different equations on each subdomain. Maybe a more practical approach for me is to output the results from a sub-region and make it serve as the initial condition for another solver. I am searching for the method to output VectorField only from a sub-region.
hi, exw599, have you got a good way to do this? i now have exactly the same situation.
cfdopenfoam is offline   Reply With Quote

Old   May 15, 2016, 23:11
Default
  #6
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11
cfdopenfoam is on a distinguished road
Quote:
Originally Posted by akidess View Post
A simple alternative is to multiply your equation system with an indicator field which is 1 only where you want the equations to be solved.
hi, Anton. thank you for your hints here. it's a good approach, but i am wondering how the boundary conditions could be imposed because they only need to be specified at the boundaries of the subdomain.

are there any simple cases we can refer to?

thanks very much!
cfdopenfoam is offline   Reply With Quote

Old   May 23, 2016, 14:45
Default
  #7
New Member
 
exw599
Join Date: Jan 2016
Posts: 6
Rep Power: 10
exw599 is on a distinguished road
Hi in the end I simply solve two different equations on using two different solvers with the results from first solver serving as initial condition for the second solver. You can use mapfield function to map field value between different meshes as long as they have intersections.
exw599 is offline   Reply With Quote

Old   May 23, 2016, 21:41
Default
  #8
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11
cfdopenfoam is on a distinguished road
Quote:
Originally Posted by exw599 View Post
Hi in the end I simply solve two different equations on using two different solvers with the results from first solver serving as initial condition for the second solver. You can use mapfield function to map field value between different meshes as long as they have intersections.
thank you for your enlightment. this is very helpful and can be a very nice solution for steady case. unfortunately i work on an unsteady case and i do very long time simulation. it's nearly impossible to write required fields at each time step and then read as solved parameters for the second solver.
cfdopenfoam is offline   Reply With Quote

Old   May 24, 2016, 16:27
Default
  #9
New Member
 
exw599
Join Date: Jan 2016
Posts: 6
Rep Power: 10
exw599 is on a distinguished road
Quote:
Originally Posted by cfdopenfoam View Post
thank you for your enlightment. this is very helpful and can be a very nice solution for steady case. unfortunately i work on an unsteady case and i do very long time simulation. it's nearly impossible to write required fields at each time step and then read as solved parameters for the second solver.
Hi that depends on the ratio of the relaxation times between the two coupling dynamics, I suppose if one is significantly smaller than the other you could safely ignore the dynamics with smaller relaxation time and solve it using steady state solver instead and solve full dynamics for the other. Hope this helps.
exw599 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
simpleFoam error - "Floating point exception" mbcx4jc2 OpenFOAM Running, Solving & CFD 12 August 4, 2015 02:20
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 21:23.