CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   solver for multi region? (https://www.cfd-online.com/Forums/openfoam-solving/73534-solver-multi-region.html)

phsieh2005 March 10, 2010 16:02

solver for multi region?
 
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

benk March 26, 2010 09:11

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

phsieh2005 March 28, 2010 06:55

Thanks a lot benk!

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

Pei

benk March 29, 2010 09:30

I can help with a tutorial on this, although I'm still trying to understand chtMultiRegionFoam myself.

H...G July 22, 2023 11:48

implicit approach for region coupling
 
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

Yann July 23, 2023 05:41

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

H...G July 24, 2023 02:58

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

H...G July 24, 2023 03:01

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

Yann July 24, 2023 03:50

Hello Hoss,

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

Regards,
Yann


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