uniformValue table meaning in propeller tutorial
Dear all,
is my following interpretation correct? Code:
inlet the meaning is : - from time 0 to 0.01s the velocity varies linearly from 0 to -15m/s - from time 0.01 to 100s the velocity stays constant at -15m/s right? thank you in advance donQi |
Yes, it's correct for the velocity component (Y). X and Z stays as zeros
|
Hi,
i know this a old thread but can i apply this "table" condition for compressible cases ? specially for pressure ? thank you, |
Hi,
Sure you can, as long as you adapt the syntax (scalar instead of vector). There are several BC which can be used with tables, depending on the OpenFOAM version you are using. Regards Yann |
Quote:
Hi Yann, Thank you very much for your kind reply, I am using openFOAM v2112, This is my "p" file in my simulation so i need to give pressure gradually for the simulation, Since i am having unstable pressure condition:confused: I am really grateful if you can help me on this :( Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Something like this should do the job, up to you to adjust it to your needs:
Code:
OUTLET Cheers, Yann |
1 Attachment(s)
Quote:
so adjusted total pressure to uniform total pressure bc as below, Code:
/*--------------------------------*- C++ -*----------------------------------*\ when i running the simulation i realize pressure is already too high in paraview, when its meant to be in a range of 70000-80000 pa between 3000- to 4000 iterations according to the table. does this mean inserting the table for total pressure is not working or do i have to do the table values for the fixedvalues as well. :confused: |
Are you sure the pressure is too high?
It is not very clear on your screenshot but the inlet pressure seems to be close to what you are expecting. To make sure you can load only your inlet patch in paraview and check the pressure values. If your concern is related to what is going on inside the domain, then this is another topic (your boundary condition only defines values on the boundary). Does it make sens to start your simulation with a total pressure of 10000 Pa at the inlet while you already have a fixed static pressure of 97251 Pa at the outlet? A better approach would probably be to start with a pressure drop close to zero and increase inlet pressure up to the pressure drop you aim for. Regards, Yann |
1 Attachment(s)
Quote:
apologies for the low quality picture. you are correct actually, it seems inlet p is in the range of 100000 and 120000. i attached a picture of inlet pressure bc contour. i have posted (1 & 2 below) my problem in the forum months ago but did not get a reply since :( 1) https://www.cfd-online.com/Forums/op...es-p-file.html 2) https://www.cfd-online.com/Forums/op...sor-blade.html Quote:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ Again i am really thankful for you for supporting me in this case ,casue you are the only person who replied for this issue. |
Hi Sakun,
On you screenshot, the pressure on the inlet patch is 115775 Pa, which is the total pressure value your assigned in your boundary condition (p0=115775 Pa is the last line of your table). Do you get any flow inside your domain? What velocity do you get at inlet? Regards, Yann |
1 Attachment(s)
Quote:
Understood, really appriciate for the guidence. p File, Code:
/*--------------------------------*- C++ -*----------------------------------*\ U File, Code:
/*--------------------------------*- C++ -*----------------------------------* \ I am running the simulation using only pressure values. (tot_pressure=115775 and static_pressure=97251) Even though paper has mentioned(attached picture) that, there is a 0.7 mach speed at the inlet, i did not apply to the U file because i do not have the speed of sound for that particular mach number. Thank you, Regards, Sakun |
Hi,
Sure you cannot impose both pressure and velocity values at the inlet. What I meant was: have you checked the velocity computed at the inlet and what values do you get there? Yann |
2 Attachment(s)
Quote:
I attached a picture of INLET before the divergence and velocity was 3.6 m/s. and the other picture was the velocity at the INLET when i continue the simulation even after the divergence, which has a velocity of 160 m/s. Thank you, Best regards, |
All times are GMT -4. The time now is 23:59. |