Code Saturne Outlet pressure
- AndreaF
- Topic Author
- Offline
- New Member
- Posts: 13
- Thank you received: 0
I'd like to simulate a suction fan.
in this case I need to impose a pressure at the outlet (I know the diagram of the fan velocity - pressure).
In which way I can set up a pressure BC for the outlet in code saturne?
Thanx to all<br /><br />Post edited by: AndreaF, at: 2011/06/07 19:19
Please Log in or Create an account to join the conversation.
- Torben
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
In the GUI (v1.3.3): Physical properties -> Reference values -> Reference pressure.
Please Log in or Create an account to join the conversation.
- AndreaF
- Topic Author
- Offline
- New Member
- Posts: 13
- Thank you received: 0
The Fan create a pressure drop of about 100Pa.
If I set the reference pressure = 101325 Pa (standard pressure ) - 100 Pa = 101225Pa, in which way can I setup the pressure for the inlet?
Many thanx for the help
Please Log in or Create an account to join the conversation.
- Torben
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
PRED0 RA real number [0.D0] O L3
for each phase IPHAS, PRED0(IPHAS) is the reference value for the reduced pressure P&#8727; (see RO0) it is especially used to initialise the reduced pressure and as a reference value for the outlet boundary conditions for an optimised precision in the resolution of P &#8727; , it is wiser to keep PRED0 to 0
with the compressible module, the “pressure” variable appearing in the equations directly represents the total pressure. It is therefore initialised to P0 and not PRED0 (see RO0)
always useful, except with the compressible module
PRED0 can be changed in SUBROUTINE USIPSU in user fortran file usini1.f In the standard usini.f around line 1230 you find:
[code:1] IPHAS = 1
C
T0 (IPHAS) = 1000.D0 + 273.15D0
P0 (IPHAS) = 1.013D5[/code:1]Here you can add:
[code:1] PRED0 (IPHAS) = 0.1234D00[/code:1]- or whatever you need
I just checked with CS 1.3.3 and it works. Hope it helps. Could be interesting to see some results from your calculation.
Please Log in or Create an account to join the conversation.
- Torben
- Offline
- Premium Member
- Posts: 91
- Thank you received: 1
Please Log in or Create an account to join the conversation.