# Setting a inlet pressure boundary condition

6 messages
Open this post in threaded view
|

## Setting a inlet pressure boundary condition

 I want to set up pressure boundary conditions both for inlet and outlets of my geometry model. But, I did not find how to do that for inlet. Only inlet /  velocity condition is possible in FEATool ? Please suggest.
Open this post in threaded view
|

## Re: Setting a inlet pressure boundary condition

 Administrator rvrmohan wrote I want to set up pressure boundary conditions both for inlet and outlets of my geometry model. But, I did not find how to do that for inlet. Only inlet /  velocity condition is possible in FEATool ? The inlet/outlet designations are just labels for the normal or typical use of these boundary conditions. When you prescribe either velocities or pressure it depends on the actual values you prescribe wether the resulting boundary will result in inwards or outwards fluid flow (and the rest of the model). If you for example prescribe negative velocities on an inlet/velocity boundary (with respect to the outward normal of the boundary) it will effectively function as an outlet, and if you have one boundary with higher pressure than the others it should also act as an inlet.
Open this post in threaded view
|

## Re: Setting a inlet pressure boundary condition

 My geometry has two boundaries, which I am setting as pressure boundaries. I am setting boundary 84 as outlet / pressure boundary (10000 mm water column) and 89 as outlet / pressure again (0 mm, atmospheric). All other boundaries are solid no-slip boundaries. Pl see: 1_inlet_pressure_boundary_condition.PNG. 1. When I choose any of the Turbulence models - k-e, k-e (RNG), k-e (realizable), k-omega - using OpenFOAM, from equation mode and try to 'edit' the inlet conditions, it shows me an error: 2_inlet_conditions_not_detected_error.PNG. Further, when I go ahead to 'solver mode' and click solve on OpenFOAM, it gives me this error: 3_error_for_OpenFOAM_k-e_turbulence_model.PNG. 2. When I choose any of the Turbulence models - Laminar, Spalart-Allmanas, k-omega(SST) - using SU2, and try to 'edit' the inlet conditions, it shows a similar error as above - 'inlet conditions not detected'. Further, when I go ahead to 'solver mode' and click solve on SU2, it gives me this error: 5_SU2_solver_error_message.PNG. Therefore, though the inlet / outlet designations are just labels, but for external solvers, it does pass on inlet conditions resulting in errors and solver failures. Am I right or is there anything that I am missing ?? Please help out.
Open this post in threaded view
|

## Re: Setting a inlet pressure boundary condition

 Administrator rvrmohan wrote 1. When I choose any of the Turbulence models - k-e, k-e (RNG), k-e (realizable), k-omega - using OpenFOAM, from equation mode and try to 'edit' the inlet conditions, it shows me an error: 2_inlet_conditions_not_detected_error.PNG. Further, when I go ahead to 'solver mode' and click solve on OpenFOAM, it gives me this error: 3_error_for_OpenFOAM_k-e_turbulence_model.PNG. To estimate turbulence quantities over inlet boundaries the mean velocity "u_mean" over the boundary is used, specifically  k = 3/2*( u_mean * turbulence_intensity )^2 epsilon = C_MIU^3/4*k^3/2 / turbulent_length_scale omega = C_MIU^-1/4*k^1/2 / turbulent_length_scale which is not present for pressure boundaries. rvrmohan wrote 2. When I choose any of the Turbulence models - Laminar, Spalart-Allmanas, k-omega(SST) - using SU2, and try to 'edit' the inlet conditions, it shows a similar error as above - 'inlet conditions not detected'. Further, when I go ahead to 'solver mode' and click solve on SU2, it gives me this error: 5_SU2_solver_error_message.PNG. Therefore, though the inlet / outlet designations are just labels, but for external solvers, it does pass on inlet conditions resulting in errors and solver failures. Unlike FEATool (and FEniCS), the SU2 and OpenFOAM external CFD solvers are not set up to handle problems without defined inlet boundaries which are not detected with just fixed pressure boundaries. You can use the "Export" functionality to export the configuration/case files and manually edit them to correct for this. For example for the corresponding SU2 .cfg configuration file you would most likely change/prescribe "INC_INLET_TYPE= VELOCITY_INLET" to "INC_INLET_TYPE= PRESSURE_INLET".