|
[Sponsors] |
January 9, 2015, 12:02 |
channel flow simulation
|
#1 |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
hi all,
I am new in this forum and I am a new user of OpenFoam. I have to study a isentropic, adiabatic subsonic flow in a tube convergent-divergent, given an inlet pressure and outlet pressure. I have already done the mesh with gmesh. the problem is that I don't know which solver to use and if the mesh is correct. please if somebody has already done this could explain it to me ?? i know it's a really trivial problem for those who deal with OF daily so I'm sure you can help me out in few seconds just telling me what to do. many thanks in advance. GP |
|
January 12, 2015, 08:34 |
|
#2 |
Senior Member
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27 |
Hey,
Is this steady-state, uncompressible and turbulent?
__________________
The skeleton ran out of shampoo in the shower. |
|
January 14, 2015, 06:48 |
|
#3 |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
yes it is. really simple I guess, but for me it is not!
|
|
January 14, 2015, 07:43 |
|
#4 |
Senior Member
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27 |
You can find a list of solvers here:
http://www.openfoam.org/features/standard-solvers.php With the things you wrote here, you could use simpleFOAM.
__________________
The skeleton ran out of shampoo in the shower. |
|
January 14, 2015, 08:06 |
|
#5 |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
ok thanx, but what shall i do to use simplefoam?
|
|
January 14, 2015, 08:09 |
|
#6 |
Senior Member
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27 |
You can find some examples how to configure the solver in the tutorial folder (OpenFOAM.../turotirals/incompressible/simpleFOAM).
I guess you need to read and try a bit with those tutorials and then ask some more explicit questions about the problems you face.
__________________
The skeleton ran out of shampoo in the shower. |
|
January 14, 2015, 11:19 |
|
#7 | |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
Quote:
|
||
January 14, 2015, 11:23 |
|
#8 |
Senior Member
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27 |
Which tutorial?
__________________
The skeleton ran out of shampoo in the shower. |
|
January 15, 2015, 05:36 |
|
#9 |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
||
January 15, 2015, 05:40 |
|
#10 |
Senior Member
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27 |
Don't you have an "Allrun" script in the tutorial? You can just start that, or have a look inside for the missing command.
__________________
The skeleton ran out of shampoo in the shower. |
|
January 15, 2015, 06:57 |
|
#11 |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
this is the allrun script.yet, i don't know how to run it and what does it do?
thank you very much for your patience and kindness |
|
January 15, 2015, 06:59 |
|
#12 | |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
Quote:
cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions # Get application directory application=`getApplication` # This case uses the #codeStream which is disabled by default. Enable for # just this case. MAIN_CONTROL_DICT=`foamEtcFile controlDict` if [ -f "$MAIN_CONTROL_DICT" ] then echo "Modifying ${MAIN_CONTROL_DICT} to enable allowSystemOperations" # Clean up on termination and on Ctrl-C trap 'mv ${MAIN_CONTROL_DICT}.$$ ${MAIN_CONTROL_DICT} 2>/dev/null; exit 0' \ EXIT TERM INT cp ${MAIN_CONTROL_DICT} ${MAIN_CONTROL_DICT}.$$ echo "Enabling allowSystemOperations in ${MAIN_CONTROL_DICT}." sed \ -e s/"\(allowSystemOperations[ \t]*\)\([0-9]\);"/"\1 1;"/g \ ${MAIN_CONTROL_DICT}.$$ > ${MAIN_CONTROL_DICT} fi runApplication blockMesh runApplication topoSet runApplication refineHexMesh c0 -overwrite cp -r 0.org 0 #runApplication $application runApplication decomposePar -cellDist runParallel $application 5 runApplication reconstructPar # ----------------------------------------------------------------- end-of-file |
||
January 18, 2015, 06:22 |
solution??
|
#13 |
New Member
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11 |
so... what is the solution? how shall I run an Allrun script? and what does it do? and how do I study the flow in a channel with an already done mesh(I have done a mesh with Gmesh, the shape is a convergent-divergent and I have done 3 boundaries: inlet, outlet and side walls). Please help me out guys!!
|
|
January 29, 2015, 06:37 |
|
#14 |
Member
Thorsten Grahs
Join Date: Oct 2009
Posts: 61
Rep Power: 17 |
maybe you post your case here?!
you execute the Allrun script with ./Allrun it makes in pricipal i) the mesh i.e. runApplication blockMesh ii) generate some regions/cellSets runApplication topoSet iii) refines this regions runApplication refineHexMesh c0 -overwrite iv) copy the inital value folder 0 i.e. cp -r 0.org 0 v) runs the solver in parallel (the name of the solver is read with getApplication from the controlDict entry...) runApplication decomposePar -cellDist runParallel $application 5 vi) reconstruct the paralel case runApplication reconstructPar That's it. thg. |
|
Tags |
adiabatic, channel, convergent-divergent, isentropic, turbolent flow |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition problem for open channel flow | Andy | CFX | 9 | June 11, 2016 08:20 |
Simulation of a complex wing in solidworks flow simulation | niels1900 | FloEFD, FloWorks & FloTHERM | 6 | April 20, 2011 11:44 |
gas flow out of a C-D channel | ljp | FLUENT | 0 | March 7, 2011 15:32 |
Natural convection - Inlet boundary condition | max91 | CFX | 1 | July 29, 2008 21:28 |
fluid flow fundas | ram | Main CFD Forum | 5 | June 17, 2000 22:31 |