CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   porousSimpleFoam (http://www.cfd-online.com/Forums/openfoam-solving/99246-poroussimplefoam.html)

Per March 29, 2012 09:30

porousSimpleFoam and rotating porous media
 
Hi

I want to use a rotating porous media in order to disturb/set up a flow in a tank. Think of it as a porous screen or disk. From the tutorial of porousSimpleFoam I see that porous media is used for flow control, rather than setting up a flow. From the source term in the governing equation it can be seen that one needs a flow velocity in order to have a contribution from the porous media on the flow.

Does anyone know if it is possible to define a moving/rotating porous media by for instance using a moving reference frame (without altering the source code)? I have noticed that a solver named rhoPorousSimpleFoam exists. But this is for incompressible flow (I have incompressible flow), and the example did not have any MRFZones that I could see. Btw, I am using OF 2.1.0.

Thanks in advance for replies
Regards
Per

Hisham April 15, 2012 18:32

Hi

Try the MRFSimpleFoam. It has a tutorial!

Also a wiki entry: http://openfoamwiki.net/index.php/MR...eFoam_Tutorial

I hope these help!

Regards,
Hisham

Per April 16, 2012 04:01

Thanks for the reply Hisham :) I have already tested MRFSimpleFoam on a case quite similar with the one you posted. This takes care of rotation of a boundary face, but I still need to include a porous zone or porous volume (which must be rotating). Any ideas?

Regards
Per

Hisham April 16, 2012 08:42

Hi Per,

Support for moving meshes has to be implemented in the code if it is not there. Look at interDyMFoam and interFoam to compare what you need to do. The tutorial/mesh has a dynamicMovingMesh directory for tutorials on how to move the mesh using the dynamicMoveMesh utility but not actually solving anything!

If you need to start a rotation in fluid, why not add a source term to the solver equation for body forces and set it up with some criteria to initialize the tank! This will also need digging into code.

Also, why not set the initial velocity field for a non zero value. You can use funkySetFields utility for adding an expression for cell values (i.e. based on position).

I hope you find a solution soon

Regards
Hisham

Per April 19, 2012 08:29

In the beginning I am trying to avoid adding new functionality (time consuming). But it might be that I have to in the end. Thanks for the tip :)

Regards
Per


All times are GMT -4. The time now is 07:43.