|
[Sponsors] |
September 29, 2009, 23:52 |
beginner-hlp pls
|
#1 |
Member
sarangarajan
Join Date: Sep 2009
Posts: 31
Rep Power: 17 |
hi guys i want to set a pressuer of 2 units in movingwall1 and 1 in movingwall .. am getting an error in this could you guys help me with it?
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.6 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { movingWall { type fixedValue; value uniform (1 0 0); } movingWall1 { type fixedValue; value uniform (2 0 0); } fixedWalls { type zeroGradient; } frontAndBack { type empty; } } // ************************************************** *********************** // |
|
September 30, 2009, 01:40 |
|
#2 | |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
However, why do you specify the pressure at a wall, since if you use the no-slip condition, you already specify the velocity, and the pressure should be set to zeroGradient. Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||
September 30, 2009, 14:27 |
@ alberto
|
#3 |
Member
sarangarajan
Join Date: Sep 2009
Posts: 31
Rep Power: 17 |
Thanks for the reply. Actually I am modifying the cavity problem in the tutorial. I am keeping one face as inlet and the other as outlet. So I named one face of the face as movingwall and an opposite face as movingwall1. I then specified pressure difference as well as velocity difference is this right
|
|
September 30, 2009, 14:38 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
You should specify velocity at the inlet, where p is set to zeroGradient, and pressure at the outlet, where velocity is set to zeroGradient. Keep in mind you consider incompressible flows.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
September 30, 2009, 18:09 |
@alberto
|
#5 |
Member
sarangarajan
Join Date: Sep 2009
Posts: 31
Rep Power: 17 |
hi.. I understood what you said.. my question is how do i differentiate vectors and scalars when I type them in the editor
hope this is clear for pressure movingWall { type fixed; value 0; } is this correct? Last edited by sarajags_89; September 30, 2009 at 19:50. |
|
September 30, 2009, 20:55 |
|
#6 | |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
movingWall { type fixedValue; value uniform 0; } is the right syntax. This should be clear by all the examples you find in the tutorials. Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||
September 30, 2009, 20:56 |
|
#7 | |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Quote:
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
i need help following problem pls pls help | gmani | CFX | 4 | March 31, 2009 10:39 |
Turbulence model for subsea stability, Pls. | Abiodun | FLUENT | 1 | August 23, 2007 07:52 |
Pls. help with particle tracking | Daddy | CFX | 4 | August 16, 2007 05:34 |
multi phase flows....pls help... | karthik | FLUENT | 0 | November 16, 2005 10:15 |
help pls | gianluca | FLUENT | 2 | November 12, 2004 11:27 |