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/)
-   -   Adding porous zones to compressible multiphase solvers (https://www.cfd-online.com/Forums/openfoam-programming-development/88953-adding-porous-zones-compressible-multiphase-solvers.html)

Hisham May 31, 2011 05:20

Adding porous zones to compressible multiphase solvers
 
Dear all,

I am new to OpenFoam. I wish to add porous zones support to compressibleInterDyMFoam. By checking code of (interFoam, porousInterFoam, interDyMFoam, compressibleInterFoam & compressibleInterDyMFoam), it seems that I just have to include both the porousZones.H and createPorousZones.H headers to add porous zones support to the compressibleInterFoam or compressibleInterDyMFoam. Is this enough? Or should there be any other issues that I should attend to?

Best regards,
Hisham El Safti

Black-Pearl June 1, 2011 03:22

I have such a question, too. I wish to add a porous zone support to MRFSimpleFoam. Is it possible?

Have you check your calculation?

Hisham June 1, 2011 03:42

I have not done it yet, but I plan to. When I do, I'll post the results. Of course it would be better if I would know if more work is to be anticipated than just including headers!

Black-Pearl June 7, 2011 08:17

Do you know how to combine two solvers together?

run_cfd August 23, 2011 03:25

Quote:

Originally Posted by Hisham (Post 310072)
I have not done it yet, but I plan to. When I do, I'll post the results. Of course it would be better if I would know if more work is to be anticipated than just including headers!



Hi Hisham,

Did you succeeded in combining the two solvers? If yes, then could you share your brief method in doing so.

Thanks,

Manoj

Hisham August 25, 2011 09:27

Hello Manjo

I did not have time to do that just yet.

But I'm quite sure, now, that it is that straight forward (I think :confused:)

I may try to do it soon. I just got involved in other stuff

lfbarcelo March 17, 2014 09:20

I know this is an old post but answering may help others.

Quote:

it seems that I just have to include both the porousZones.H and createPorousZones.H headers to add porous zones support to the compressibleInterFoam or compressibleInterDyMFoam. Is this enough?
You should also add the corresponding term to the momentum equation (UEqn). "pZones.ddt(rho, U)" on the left side.

This works on versions up to 2.1.
I think that 2.2 has a different way of treating porousZones.

brocco November 27, 2015 02:55

hi marcelo, i tried with your suggestion but without succes unfortunately! I've tried to add in the Ueq both the term you suggested and, in a second time the term "pZones.addResistance(UEqn);" after Urelax (as is done in interporousfoam and in rhoPorousetc).
Have you other suggestions?actually the problem seems to fall in the create fields. I receive an error :
--> FOAM FATAL ERROR:
LHS and RHS of + have different dimensions
dimensions : [1 -3 0 0 0 0 0] + [0 0 0 0 0 0 0]

when the line:
volScalarField rho1("rho1", eos1->rho(p, T));

is reached.
I know that the post is very old but.... :D

brocco November 27, 2015 05:14

Obviously....if someone else had good experiences with porous zones via fvOptions in more recent versions of compressibleInterFoam or twoPhaseEulerFoam is welcome!

thnx in advance to evrbdy ;)


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