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

solver for multi region?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 10, 2010, 16:02
Default solver for multi region?
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi,

I would like to solve for magnetic field (Maxwell equation) induced by permanent magnets. Each magnet has different material properties. Hence, I am considering a new solver with multi regions. chtMultiRegionFoam is similar, but, much more complex because it solves both fluid and solid.

Has anyone tried anything similar, ie, one governing equation (vector, not scalar) but, with multiple regions?

Thanks!

Pei
phsieh2005 is offline   Reply With Quote

Old   March 26, 2010, 09:11
Default
  #2
Senior Member
 
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19
benk is on a distinguished road
I don't think it should be too hard. I modified chtMultiRegionFoam for a simple diffusion equation (for a scalar) between two regions where the diffusivity changes between the two regions.

Here's my model: multiRegion-chtMultiRegion.tgz

And you can see the basic result here: http://www.cfd-online.com/Forums/ope...tml#post251624
benk is offline   Reply With Quote

Old   March 28, 2010, 06:55
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Thanks a lot benk!

I will study your implementation. Maybe we can write a tutorial on this later.

Pei
phsieh2005 is offline   Reply With Quote

Old   March 29, 2010, 09:30
Default
  #4
Senior Member
 
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19
benk is on a distinguished road
I can help with a tutorial on this, although I'm still trying to understand chtMultiRegionFoam myself.
benk is offline   Reply With Quote

Old   July 22, 2023, 11:48
Default implicit approach for region coupling
  #5
New Member
 
Join Date: Aug 2021
Posts: 7
Rep Power: 4
H...G is on a distinguished road
Dear foamers

I am simulating a multie-region problem in OF.

As far as I now, cht multiregion solver implements explicit approach for coupling the regions. (It modifies the boundary value at the coupled interface by iterations).
I want to know if there is an implicit approach for coupling.
Like making fvMatrix for different regions and assembling them and finally solving one general fvMatrix?

best,

Hossein
H...G is offline   Reply With Quote

Old   July 23, 2023, 05:41
Default
  #6
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,111
Rep Power: 26
Yann will become famous soon enough
Hello Hossein,

In the OpenCFD branch there is an implicit mode for chtMultiRegionFoam since version v2112: https://www.openfoam.com/news/main-n...mplicit-cyclic

If I remember correctly, there was a thread about it somewhere on the forum where people noticed different results when using the implicit mode compared to the original explicit one.
Tobias opened a bug report about it: https://develop.openfoam.com/Develop.../-/issues/2536
It's still open so I don't know what is the current behavior in the latest version.

Hope this helps,
Yann
Yann is offline   Reply With Quote

Old   July 24, 2023, 02:58
Default
  #7
New Member
 
Join Date: Aug 2021
Posts: 7
Rep Power: 4
H...G is on a distinguished road
Hi

Than you very much for your response.

As I checked the solver in the latest version, it solves fvMatrix of each region ,seperately. it seems that, it couples the regions explicitly.



best regards,

Hoss

Last edited by H...G; July 25, 2023 at 10:28.
H...G is offline   Reply With Quote

Old   July 24, 2023, 03:01
Default
  #8
New Member
 
Join Date: Aug 2021
Posts: 7
Rep Power: 4
H...G is on a distinguished road
Hi

Than you very much for your response.

As I checked the solver in the latest version, it solves fvMatrix of each region ,seperately. it seems that, it couples the regions explicitly.



best regards,

Hoss

Last edited by H...G; July 25, 2023 at 10:28.
H...G is offline   Reply With Quote

Old   July 24, 2023, 03:50
Default
  #9
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,111
Rep Power: 26
Yann will become famous soon enough
Hello Hoss,

When the implicit mode is used, one single energy equation is solved at once for all regions.

Regards,
Yann
Yann is offline   Reply With Quote

Reply

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
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 04:38
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


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