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/)
-   -   A coupled problem with different equations in different geometries (https://www.cfd-online.com/Forums/openfoam-programming-development/206436-coupled-problem-different-equations-different-geometries.html)

ywem September 6, 2018 12:23

A coupled problem with different equations in different geometries
 
Hi,
I am solving a problem consisting of two coupled equaitons. These two equations are solved in two adjacent geometries, respectivley. Coupling takes place at the interface between them and the interface moves according to the solutions of the equations. Some kind Foamers advised using dynamic mesh and it can deal with one equation in one geometry. But how can I deal with the case when two different equations concern on different geometries.
Dose anyone has some ideas about the method to solve this problem using OpenFOAM?
Many thanks.

mAlletto September 7, 2018 03:29

The are also dynamic mesh and overset mesh technologies available for the volume of fluid method. Maybe this helps

simrego September 7, 2018 04:48

Just some ideas, maybe helps, maybe just ignore them:

1,
What if you use the interFoam for a base, but use the alpha to blend the equations? I'm not sure if it is possible, but I think it is. Something like:
eqn1 = "dummy stuff";
eqn2 = "dummy stuff";
Solve ( alpha*eqn1 + (1-alpha)*eqn2 == 0 );
The problem with this is to figure out the equation which will change the alpha field, and maybe at the interface there will be some weird stuff...

2,
Or you can check the chtMultiRegionFoam solver. This solver is for two types of regions (solids, and fluids). But you can rewrite it as you wish. You can define the equations for each type of regions, where each region has it's own geometry (mesh). The communication between them is done with a coupled boundary condition, but maybe you will have to write your own BC for your problem, and you can also add the dynamicMesh functionality to it.

ywem September 7, 2018 10:30

Dear Alletto and simrego,
Thank you very much for both of the suggestions. Hopefully they will work.
Best wishes,


All times are GMT -4. The time now is 15:04.