Commit cd81d3bb authored by mozul's avatar mozul
Browse files

Squashed 'examples/' changes from da1441e..e5f8682

e5f8682 removing duplicate mur example
801823d Merge branch 'rc2015' of git-xen.lmgc.univ-montp2.fr:lmgc90/lmgc90_user_examples into rc2015
75681d7 update examples of Pre/prepro_grains for 2015 release
783cdf7 maj modele therm 3D
6c4b9fe maj modele elec
0de267e ajout mots cles manquant
d80b3dd Merge branch 'rc2015' of git-xen.lmgc.univ-montp2.fr:lmgc90/lmgc90_user_examples into rc2015
e5b8227 update display commands in rigid multi physics example for workshop
b9110d0 first update of Ateliers examples
acf58dc mise a jour des fct Ptr
b4b1e8f mise a jour des fct Ptr
580a96b first update of poro and therMAILx example
03ceb24 update mecaMAILx_RIGID_3D examples for 2015 release and add missing update of mecaMAILx_RIGID_2D
13255ca update mecaMAILx_RIGID_2D examples for 2015 release
d2b231c remove duplicate example script
b1c2a99 rename cubes_H8_explicit example in cubes_H8
50fb915 update mecaMAILx examples for 2015 release and remove cubes_H8 duplicate example
2ee408d update mecaMAILx_2D examples for 2015 release
2994047 update RIGID_3D examples for rev 2015 ddm and thermal not working yet
ea93075 update RIGID_2D example for new version

git-subtree-dir: examples
git-subtree-split: e5f8682eef4f74ebf9a107e233fb271cbdbf5035
parent bdefdcb1
......@@ -2,6 +2,9 @@ import os,sys
from pylmgc90.pre_lmgc import *
if not os.path.isdir('./DATBOX'):
os.mkdir('./DATBOX')
# on se place en 2D
dim = 2
......
......@@ -17,6 +17,7 @@ echo = 0
# info generation fichier visu
freq_display = 50
ref_radius = 1.
# info contact
freq_detect = 1
......@@ -29,6 +30,7 @@ relax = 1.0
gs_it1 = 51
gs_it2 = 1001
SetDimension(2)
### definition des parametres du calcul ###
utilities_logMes('INIT TIME STEPPING')
TimeEvolution_SetTimeStep(dt)
......@@ -75,9 +77,7 @@ overall_WriteDrivenDof()
RBDY2_WriteDrivenDof()
### post2D ##
post2D_SetDisplayedField('CONTACT POINT ')
post2D_SetDisplayedField('TACTOR ')
post2D_Init()
OpenDisplayFiles()
utilities_logMes('COMPUTE MASS')
RBDY2_ComputeMass()
......@@ -130,8 +130,8 @@ for k in xrange(1, nb_steps + 1, 1):
DKJCx_WriteLastVlocRloc()
#
### post2D ###
overall_WriteOutDisplayFile(freq_display)
post2D_WriteOutDisplayFile(0)
WriteDisplayFiles(freq_display,ref_radius)
### wrtieout handling ###
overall_CleanWriteOutFlags()
CloseDisplayFiles()
......@@ -5,6 +5,9 @@ import math
from pylmgc90.pre_lmgc import *
if not os.path.isdir('./DATBOX'):
os.mkdir('./DATBOX')
# on se place en 2D
dim = 2
......
This diff is collapsed.
! File BEHAVIOUR
!
! The symbol '$' preceeds a keyword used in scanning files.
!
! The symbol 'behav' stands for the nickname of a bulk or
! contact behaviour law, character(LEN=5).
!
! The symbol 'lawty' stands for the name of a bulk or
! contact behaviour law, character(LEN=30).
!
! The symbol 'seety' stands for description of a candidate
! 'cdbdy' type of body, 'cdtac' type of contactor, 'cdcol' color
! ready to meet with the contact behaviour law 'behav' an antagonist
! 'anbdy' type of body, 'antac' type of contactor, 'ancol' color.
!
! Candidate antagonist objects are considered only within some distance
! 'alert'.
!
! STANDARD PACKAGE of bulk or contact behaviour laws
!
! 123456789012345678901234567890:
! :
! bulk behaviour :
! :
!
$gravy
grv1= 0.0000000e+00 grv2=-9.8100000e+00 grv3= 0.0000000e+00
$behav lawty
TDURx RIGID Umas= 1.0000000e+03
$behav lawty
PLEXx RIGID Umas= 1.0000000e+02
$steps 0 time= 0.0000000D+00
$bdyty
RBDY2 198
$nodty
NO3xx 1 X(1)= 0.0000000e+00 X(2)= 0.0000000e+00 X(3)=-1.5707963e+00
V(1)= 0.0000000e+00 V(2)= 0.0000000e+00 V(3)= 0.0000000e+00
$$$$$$
$bdyty
RBDY2 199
$nodty
NO3xx 1 X(1)= 0.0000000e+00 X(2)= 0.0000000e+00 X(3)= 1.5707963e+00
V(1)= 0.0000000e+00 V(2)= 0.0000000e+00 V(3)= 0.0000000e+00
$$$$$$
! DOF
$bdyty
RBDY2 196
$nodty
NO3xx 1
$dofty numbr [CT......+......AMP..*..cos.(..OMEGA.*.time.+.PHI..)]...*...[RAMPI.....+.....RAMP.*.time]
vlocy 1 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 2 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 3 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
$$$$$$
$bdyty
RBDY2 197
$nodty
NO3xx 1
$dofty numbr [CT......+......AMP..*..cos.(..OMEGA.*.time.+.PHI..)]...*...[RAMPI.....+.....RAMP.*.time]
vlocy 1 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 2 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 3 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
$$$$$$
$bdyty
RBDY2 198
$nodty
NO3xx 1
$dofty numbr [CT......+......AMP..*..cos.(..OMEGA.*.time.+.PHI..)]...*...[RAMPI.....+.....RAMP.*.time]
vlocy 1 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 2 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 3 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
$$$$$$
$bdyty
RBDY2 199
$nodty
NO3xx 1
$dofty numbr [CT......+......AMP..*..cos.(..OMEGA.*.time.+.PHI..)]...*...[RAMPI.....+.....RAMP.*.time]
vlocy 1 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 2 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
vlocy 3 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00
$$$$$$
$behav
iqsc1 IQS_CLB fric= 5.0000000e-01
$behav
iqsc0 IQS_CLB fric= 3.0000000e-01
$seety
cdbdy cdtac cdcol behav anbdy antac ancol alert
RBDY2 DISKx BLEUx iqsc0 RBDY2 DISKx BLEUx 5.1084595e-02
$seety
cdbdy cdtac cdcol behav anbdy antac ancol alert
RBDY2 DISKx BLEUx iqsc0 RBDY2 JONCx WALLx 5.1084595e-02
......@@ -17,6 +17,7 @@ echo = 0
# info generation fichier visu
freq_display = 50
ref_radius = 1.
# info contact
freq_detect = 1
......@@ -29,6 +30,7 @@ relax = 1.0
gs_it1 = 51
gs_it2 = 1001
SetDimension(2)
### definition des parametres du calcul ###
utilities_logMes('INIT TIME STEPPING')
TimeEvolution_SetTimeStep(dt)
......@@ -75,9 +77,7 @@ overall_WriteDrivenDof()
RBDY2_WriteDrivenDof()
### post2D ##
post2D_SetDisplayedField('CONTACT POINT ')
post2D_SetDisplayedField('TACTOR ')
post2D_Init()
OpenDisplayFiles()
utilities_logMes('COMPUTE MASS')
RBDY2_ComputeMass()
......@@ -130,8 +130,8 @@ for k in xrange(1, nb_steps + 1, 1):
DKJCx_WriteLastVlocRloc()
#
### post2D ###
overall_WriteOutDisplayFile(freq_display)
post2D_WriteOutDisplayFile(0)
WriteDisplayFiles(freq_display,ref_radius)
### wrtieout handling ###
overall_CleanWriteOutFlags()
CloseDisplayFiles()
......@@ -5,6 +5,9 @@ import math
from pylmgc90.pre_lmgc import *
if not os.path.isdir('./DATBOX'):
os.mkdir('./DATBOX')
# on se place en 2D
dim = 2
......
......@@ -6,7 +6,7 @@ checkDirectories()
### definition des parametres du calcul ###
dt = 2e-4
nb_steps=4000
nb_steps=3000
theta = 0.5
freq_write = 100
......@@ -82,8 +82,8 @@ InitTactorsToVTK(liste_tactors,tactors_dict)
inters_dict={}
InitIntersToVTK(liste_inters,inters_dict)
fit = startCollection('tacts.pvd')
fii = startCollection('inters.pvd')
fit = startCollection('DISPLAY/tacts.pvd')
fii = startCollection('DISPLAY/inters.pvd')
for k in xrange(1,nb_steps+1,1):
#
......
......@@ -2,7 +2,7 @@
from pylmgc90.chipy import *
dt = 2e-4
nb_steps=4000
nb_steps=3000
theta = 0.5
freq_write = 100
......@@ -68,8 +68,6 @@ for k in xrange(0,nb_steps):
#
IncrementStep()
TimeEvolution_DisplayStep()
ComputeFext()
ComputeBulk()
ComputeFreeVelocity()
......
......@@ -5,7 +5,7 @@ from numpy import *
# plage de fichiers a traiter
min=1
max=50
max=30
# nom du repertoire ou on va faire le post
tmp='post'
......@@ -73,8 +73,8 @@ InitTactorsToVTK(['DISKx','JONCx'],tacts_dict)
inters_dict={}
InitIntersToVTK(['DKDKx','DKJCx'],inters_dict)
fit = startCollection('tacts.pvd')
fii = startCollection('inters.pvd')
fit = startCollection(tmp+'DISPLAY/tacts.pvd')
fii = startCollection(tmp+'DISPLAY/inters.pvd')
for k in xrange(min,max+1,1):
#
......@@ -93,9 +93,9 @@ for k in xrange(min,max+1,1):
DKDKx_ReadIniVlocRloc()
utilities_logMes('tact')
writeTactorsToVTK('./DISPLAY/tacts'+'_'+str(k)+'.vtp',fit,tacts_dict)
writeTactorsToVTK(tmp+'DISPLAY/tacts'+'_'+str(k)+'.vtp',fit,tacts_dict)
utilities_logMes('inter')
writeIntersToVTK('./DISPLAY/inters'+'_'+str(k)+'.vtp',fii,inters_dict,0.1e-2)
writeIntersToVTK(tmp+'DISPLAY/inters'+'_'+str(k)+'.vtp',fii,inters_dict,0.1e-2)
utilities_logMes('---')
stopCollection(fit)
......
......@@ -5,7 +5,7 @@ from numpy import *
# plage de fichiers a traiter
min = 1
max = 40
max = 30
pas = 2
# fichiers a manipuler
......
import os,sys
sys.path.append('/Users/mrenouf/LMGC90/lmgc90-builds/')
sys.path.append('/Users/mrenouf/GitLab_LMGC90/build_dev_rc2015')
from pylmgc90.chipy import *
......@@ -96,8 +97,8 @@ InitIntersToVTK(liste_inters,inters_dict)
fit = startCollection('tacts.pvd')
fii = startCollection('inters.pvd')
disk2rbdy2 = DISKx_GetDISKx2RBDY2Ptr()
jonc2rbdy2 = JONCx_GetJONCx2RBDY2Ptr()
disk2rbdy2 = DISKx_GetPtrDISKx2RBDY2()
jonc2rbdy2 = JONCx_GetPtrJONCx2RBDY2()
for k in xrange(1,nb_steps+1,1):
#
......
import os,sys
sys.path.append('/Users/mrenouf/LMGC90/lmgc90-builds/')
sys.path.append('/Users/mrenouf/GitLab_LMGC90/build_dev_rc2015')
from pylmgc90.chipy import *
checkDirectories()
### definition des parametres du calcul ###
## definition des parametres du calcul ###
dt=0.0002
theta=0.5
......@@ -99,8 +99,8 @@ nbjoncx = JONCx_GetNbJONCx()
Td = np.zeros([nbdiskx])
Tj = np.zeros([nbjoncx])
disk2rbdy2 = DISKx_GetDISKx2RBDY2Ptr()
jonc2rbdy2 = DISKx_GetDISKx2RBDY2Ptr()
disk2rbdy2 = DISKx_GetPtrDISKx2RBDY2()
jonc2rbdy2 = DISKx_GetPtrDISKx2RBDY2()
##################
......
import os,sys
sys.path.append('/Users/mrenouf/GitLab_LMGC90/build_dev_rc2015')
from pylmgc90.chipy import *
checkDirectories()
......@@ -9,7 +11,7 @@ SetDimension(2,1)
dt = 0.0002
theta = 0.5
nb_steps_meca=100
nb_steps_meca=10
nb_steps_ther=10000
freq_detect = 1
......@@ -18,7 +20,6 @@ relax = 1.0
norm = 'Quad '
gs_it1 = 33
gs_it2 = 101
freq_display = 100
storage='Stored_Delassus_Loops '
### definition des parametres du calcul ###
......@@ -36,8 +37,11 @@ ReadBehaviours()
utilities_logMes('LOAD BEHAVIOURS')
LoadBehaviours()
utilities_logMes('LOAD TACTORS')
LoadTactors()
utilities_logMes('READ MP BEHAVIOURS')
ReadMpBehaviours()
ReadMpBehaviours(0,'therm')
utilities_logMes('READ INI DOF')
ReadIniDof()
......@@ -58,25 +62,15 @@ WriteMpBehaviours()
utilities_logMes('WRITE DRIVEN DOF')
WriteDrivenDof()
### post2D ##
post2D_SetDisplayedField('HEAT')
post2D_Init()
utilities_logMes('WRITE OUTPUT GMV')
overall_WriteOutDisplayFile(1)
post2D_WriteOutDisplayFile(0)
postpro_PostproBeforeComputation()
utilities_logMes('COMPUTE MASS')
ComputeMass()
for k in xrange(1,11,1):
#
utilities_logMes('itere : ',k)
for k in xrange(0,nb_steps_meca,1):
#
IncrementStep()
TimeEvolution_DisplayStep()
ComputeFext()
ComputeBulk()
ComputeFreeVelocity()
......@@ -91,32 +85,21 @@ for k in xrange(1,11,1):
mp_solver_SolveThermoProblem()
ComputeDof()
UpdateDof()
WriteLastDof()
WriteLastVlocRloc()
UpdateStep()
#
### postpro ###
postpro_PostproDuringComputation()
overall_CleanWriteOutFlags()
### post2D ###
overall_WriteOutDisplayFile(1)
post2D_WriteOutDisplayFile(1)
RBDY2_NullifyVelocities()
for k in xrange(1,nb_steps_ther+1,1):
for i in xrange(0,nb_steps_ther,1):
#
IncrementStep()
mp_solver_RecupTemperature()
mp_solver_SolveThermoProblem()
UpdateDof()
### post2D ###
overall_WriteOutDisplayFile(freq_display)
post2D_WriteOutDisplayFile(1)
UpdateStep()
### postpro ###
postpro_PostproDuringComputation()
......
......@@ -68,38 +68,35 @@ for k in xrange(1,1001,1):
#
utilities_logMes('itere : '+str(k))
#
#utilities_logMes('INCREMENT STEP')
utilities_logMes('INCREMENT STEP')
IncrementStep()
#utilities_logMes('DISPLAY TIMES')
TimeEvolution_DisplayStep()
#utilities_logMes('COMPUTE Fext')
utilities_logMes('COMPUTE Fext')
ComputeFext()
#utilities_logMes('COMPUTE Fint')
utilities_logMes('COMPUTE Fint')
ComputeBulk()
#utilities_logMes('COMPUTE Free Vlocy')
utilities_logMes('COMPUTE Free Vlocy')
ComputeFreeVelocity()
#
#utilities_logMes('SELECT PROX TACTORS')
utilities_logMes('SELECT PROX TACTORS')
SelectProxTactors(freq_detect)
#
RecupRloc()
nlgs_ExSolver(type, norm, tol, relax, gs_it1, gs_it2)
StockRloc()
#
#utilities_logMes('COMPUTE DOF')
utilities_logMes('COMPUTE DOF')
ComputeDof()
#
#utilities_logMes('UPDATE DOF')
utilities_logMes('UPDATE DOF')
UpdateStep()
#
#utilities_logMes('WRITE LAST DOF')
utilities_logMes('WRITE LAST DOF')
WriteLastDof()
#
#utilities_logMes('WRITE LAST Vloc Rloc')
utilities_logMes('WRITE LAST Vloc Rloc')
WriteLastVlocRloc()
#
### post2D ###
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment