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/)
-   -   Specifying nonuniform initial condition (https://www.cfd-online.com/Forums/openfoam-solving/58077-specifying-nonuniform-initial-condition.html)

suraj January 20, 2009 14:05

Hello! I am a new user of Ope
 
Hello!
I am a new user of OpenFoam. I was looking at the damBreak case and nozzleFlow2D case. Both the cases require setting a non uniform gamma field. However, the damBreak case uses setFields utility to do this while nozzleFlow2D uses cellSet utility. Is there a particular reason why this is done? When I looked at the user manual, I saw that both these utilities are for selecting a cell set through a dictionary- one does it in preprocessing while the other does it in mesh manipulation.
Can somebody please help me know why two different dictionaries are used here?

Thanks,
Suraj

Abhi16 March 17, 2016 04:01

Velocity Boundary condition on Imported 3D Mesh
 
Hi,
I wanted to specify the given Velocity Boundary Condition varying with distance from Base of Fluid Domain).For this I have created a Body and have done meshing on it,then imported in openFoam.I have tried using

inlet
{
type fixedValue;
value nonuniform List<vector>

45
(
(0 0 6.7)
(0 0 6.8)
(0 0 6.90)...



There was a option for specifying velocity vectors at the specific patches(given above), but I am not able to understand how to specify faces for each velocity vector in the Inlet patch of the imported Mesh.
Alternatively, Is there is any option to specify the Height of the vectors they are acting at??

Abhishek

wyldckat March 19, 2016 17:17

Quote:

Originally Posted by Abhi16 (Post 590228)
There was a option for specifying velocity vectors at the specific patches(given above), but I am not able to understand how to specify faces for each velocity vector in the Inlet patch of the imported Mesh.
Alternatively, Is there is any option to specify the Height of the vectors they are acting at??

Quick answers:
  1. setFields should be able to help you with this task, if the values are constant at a specific height.
  2. If you need a more mathematical way of defining the values, for example, by defining the value in function of the height, then you can try using funkySetFields.

Abhi16 March 28, 2016 00:08

Imported Mesh
 
Thanks for the reply
But I have a doubt does it work for IMPORTED Mesh as well, if so then how do we apply setField there.

Abhishek

wyldckat March 28, 2016 08:19

Quick answers:
Quote:

Originally Posted by Abhi16 (Post 591905)
But I have a doubt does it work for IMPORTED Mesh as well,

As long as the mesh is valid in OpenFOAM, it should work.

Quote:

Originally Posted by Abhi16 (Post 591905)
if so then how do we apply setField there.

Have you done the 3 tutorials from the OpenFOAM User Guide? http://cfd.direct/openfoam/user-guide/tutorials/

Have you managed to import the mesh into the OpenFOAM case? Can you share the case? Or at least provide a simple test case so that it's easier to show you how to use setFields.

More details available here: http://www.cfd-online.com/Forums/ope...-get-help.html

cyndy M April 25, 2016 04:23

non-uniform velocity profile
 
hello everyone

I'm using OpenFoam for my study and I would like to specify non uniform initial conditions for my case (velocity).
Can someone tell me more about that. I'm a begenner and I have no idea how to do it
thank you


All times are GMT -4. The time now is 05:20.