CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   fixing pressure in some cells (https://www.cfd-online.com/Forums/fluent/44499-fixing-pressure-some-cells.html)

 asghari April 22, 2007 08:02

fixing pressure in some cells

Hi

How can we set gauge pressure in some cells to a desired value?

Is it neccessary to write a UDF for this purpose?

Thanks

 Tim Magurie April 26, 2007 12:59

Re: fixing pressure in some cells

Usually you would just set the pressure at a boundary condition. Can you define the geometry you are modeling so as to help define where you would need this pressure specified.

 Asghari April 27, 2007 03:36

Re: fixing pressure in some cells

Ok, my geometry is a 2D Mixing Elbow and there are two inlet boundary in my geometry with difference inlet gauge pressures .I did'nt find in Manual how to adjust/set difference inlet gauge pressures. For example suppose :

Gauge pressure at inlet boundary 1 is:

1barg

and

Gauge pressure at inlet boundary 1 is:

4barg

How can I adjust this problem for instance using the Velocity-inlet boundary type.Also velocities in inlet are exactly specified and equal with 1m/s.

Thanks a lot .

 Tim Magurie April 27, 2007 08:35

Re: fixing pressure in some cells

The way to do this is to not set your boundaries as velocity inlets, put as pressure inlets. Then you can specify the pressure at those two points. Just make sure your outlet boundary condition is also setup.

 Asghari April 27, 2007 12:05

Re: fixing pressure in some cells

Thank you.

Yes, But there is a problem in my settings. I must set either pressure and velocity synchronously .

I read Manual for setting of pressure inlet boundary condition type . I felt it is well to bring to the notice of you , the section that describes this boundary condition as follows :

"Pressure inlet boundary conditions are used to define the fluid pressure at flow inlets,along with all other scalar properties of the flow. They are suitable for both incompressible and compressible flow calculations. Pressure inlet boundary conditions can be used when the inlet pressure is known but the flow rate and/or velocity is not known.This situation may arise in many practical situations, including buoyancy-driven flows.Pressure inlet boundary conditions can also be used to define a "free" boundary in an external or unconfined flow."

as you consider, for this boundary condition type, we can only set pressure at inlet and velocity evaluates in solution processes and it is impossible to set pressure & velocity syncronously, but inlet velocity is perfectly set to 1m/s in the my case and also I brought for you inlet pressure values in previous message. Therefore I can't use pressure inlet for this case. Can I use UDF for fixing of gauge pressure in inlet ?

Have you a better idea for this problem?