CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

channel flow simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 9, 2015, 12:02
Default channel flow simulation
  #1
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
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
GPDZ is offline   Reply With Quote

Old   January 12, 2015, 08:34
Default
  #2
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
Hey,
Is this steady-state, uncompressible and turbulent?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   January 14, 2015, 06:48
Default
  #3
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
yes it is. really simple I guess, but for me it is not!
GPDZ is offline   Reply With Quote

Old   January 14, 2015, 07:43
Default
  #4
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
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.
RodriguezFatz is offline   Reply With Quote

Old   January 14, 2015, 08:06
Default
  #5
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
ok thanx, but what shall i do to use simplefoam?
GPDZ is offline   Reply With Quote

Old   January 14, 2015, 08:09
Default
  #6
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
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.
RodriguezFatz is offline   Reply With Quote

Old   January 14, 2015, 11:19
Default
  #7
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
Quote:
Originally Posted by RodriguezFatz View Post
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.
i have tried to run the tutorial of simplefoam but when i digit blockmesh it says that the foam fails because in the controldict it is referred to an external library!! I have no idea of how to handle this!!
GPDZ is offline   Reply With Quote

Old   January 14, 2015, 11:23
Default
  #8
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
Which tutorial?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   January 15, 2015, 05:36
Default
  #9
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
Quote:
Originally Posted by RodriguezFatz View Post
Which tutorial?
pipeCyclic
GPDZ is offline   Reply With Quote

Old   January 15, 2015, 05:40
Default
  #10
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
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.
RodriguezFatz is offline   Reply With Quote

Old   January 15, 2015, 06:57
Default
  #11
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
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
GPDZ is offline   Reply With Quote

Old   January 15, 2015, 06:59
Default
  #12
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
Quote:
Originally Posted by GPDZ View Post
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
#!/bin/sh
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
GPDZ is offline   Reply With Quote

Old   January 18, 2015, 06:22
Exclamation solution??
  #13
New Member
 
Gian Patrizio
Join Date: Jan 2015
Posts: 8
Rep Power: 11
GPDZ is on a distinguished road
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!!
GPDZ is offline   Reply With Quote

Old   January 29, 2015, 06:37
Default
  #14
thg
Member
 
Thorsten Grahs
Join Date: Oct 2009
Posts: 61
Rep Power: 17
thg is on a distinguished road
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.
thg is offline   Reply With Quote

Reply

Tags
adiabatic, channel, convergent-divergent, isentropic, turbolent flow


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:02.