Skip to content

Commit

Permalink
Apps: modif. ibm waire tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit128 committed Aug 2, 2024
1 parent 041e3a5 commit 1b45cd1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cassiopee/Apps/test/FastIBMWireMeshModel_m1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@

LOCAL = test.getLocal()

tFile = 't_WMM.cgns'
tcFile = 'tc_WMM.cgns'
tFile = LOCAL+'/t_WMM.cgns'
tcFile = LOCAL+'/tc_WMM.cgns'

##READING SERIAL & DISTRIBUTING
App._distribute(LOCAL+'/'+tFile, LOCAL+'/'+tcFile, NP=Cmpi.size)
App._distribute(tFile, tcFile, NP=Cmpi.size)

t = Fast.loadTree(tFile , split='single', directory=LOCAL, mpirun=True)
tc,graph= Fast.loadFile(LOCAL+'/'+tcFile, split='single', mpirun=True, graph=True)
tc,graph= Fast.loadFile(tcFile, split='single', mpirun=True, graph=True)

##COMPUTE
NIT = 25 # number of iterations
Expand Down
10 changes: 5 additions & 5 deletions Cassiopee/Apps/test/FastIBMWireMeshModel_t1.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
C._addState(tb, 'GoverningEquations', 'NSTurbulent')
C._addState(tb, 'TurbulenceModel', 'OneEquation_SpalartAllmaras')

base=Internal.getNodeByName(tb,'IBCFil_Base1')
base = Internal.getNodeByName(tb, 'IBCFil_Base1')
Internal.addChild(base, D.line((-0.09128554453599108,-0.19576248199991644,0), (0.09128554453599105,0.19576248199991644,0),N=800))

uinf = 69.22970250694424*numpy.cos(4* numpy.pi/180)
Lcharac = 0.03362355
uinf = 69.22970250694424*numpy.cos(4* numpy.pi/180)
Lcharac = 0.03362355
C._addState(tb, adim='dim4', UInf=uinf, TInf=298.15, PInf=101325., LInf=Lcharac,Mus=1.78938e-5)
D_IBM._setSnear(tb, 0.0025)
D_IBM._setDfar(tb, 0.75)
Expand All @@ -50,8 +50,8 @@
test.testT(tc, 2)

##NEEDED FOR THE MPI version
C.convertPyTree2File(t ,LOCAL+'/t_WMM.cgns')
C.convertPyTree2File(tc,LOCAL+'/tc_WMM.cgns')
C.convertPyTree2File(t , LOCAL+'/t_WMM.cgns')
C.convertPyTree2File(tc, LOCAL+'/tc_WMM.cgns')

##COMPUTE
NIT = 25 # number of iterations
Expand Down

0 comments on commit 1b45cd1

Please sign in to comment.