CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Variable inlet size with only one mesh (https://www.cfd-online.com/Forums/openfoam/74095-variable-inlet-size-only-one-mesh.html)

lindner March 24, 2010 07:38

Variable inlet size with only one mesh
 
My case consists on a box 10x10x10 with 4 outlets (one each side at the botton) and on inlet in the center of the box top.
The problem is that i have serveral sizes of inlet to test (0.16mē,0.25mē...2mē).
I did one mesh with several blocks and all the outlets, but the inlet is not specified. Can i use this mesh with the bigger inlet surface and do all simulations just changing the inlet variable/function at the top?
It will be like a 2mē inlet, but in one simulation just 0.16mē will have an airflow and so on.
Is it possible?

Thanks

sega March 24, 2010 14:27

Quote:

Originally Posted by lindner (Post 251433)
I did one mesh with several blocks and all the outlets, but the inlet is not specified.

How can you create an inlet without specifing it?
Is it an inlet or not?

lindner March 24, 2010 18:09

I created an inlet with 1mē, i did the simulation and its everything working.
Now i want to change the inlet to 0.75mē and later 0.5mē, 0.2mē and 0.16mē.
Is there a way to do this without changing the mesh? like a function that specifies 0.5mē with a velocity and the rest of the inlet with 0 velocity.

thanks

sega March 25, 2010 03:37

Quote:

Originally Posted by lindner (Post 251528)
I created an inlet with 1mē, i did the simulation and its everything working.
Now i want to change the inlet to 0.75mē and later 0.5mē, 0.2mē and 0.16mē.
Is there a way to do this without changing the mesh? like a function that specifies 0.5mē with a velocity and the rest of the inlet with 0 velocity.

thanks

If you know an explicit function which describes what you want you can use the tool groovyBC tool. It can manage functional boundary conditions.

Otherwise you will have to change the mesh. There is even a way of making a parametric mesh with the m4 preprocessor. The input to the m4 could be your inlet size.

lindner March 25, 2010 09:15

Quote:

Originally Posted by sega (Post 251568)
If you know an explicit function which describes what you want you can use the tool groovyBC tool. It can manage functional boundary conditions.

Otherwise you will have to change the mesh. There is even a way of making a parametric mesh with the m4 preprocessor. The input to the m4 could be your inlet size.

That's exactly what I was looking for! Now i will study both methods and see witch one is easier to implement on my simulation.
Thank you very much Sebastian!


All times are GMT -4. The time now is 22:44.