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
......@@ -5,6 +5,9 @@ import math
from pylmgc90.pre_lmgc import *
if not os.path.isdir('./DATBOX'):
os.mkdir('./DATBOX')
# on se place en 3D
dim = 3
......
#COMMAND.DAT :
#23456789012345678901234567890:
#NO CHECK CHIC COMMAND :
#
ECHO OFF :
DIME :
3D :
TIME STEP :
0.1D-03 :
#
THETA :
0.5D0 :
#
APPELLE reading data : reading and processing data, see SUB
#
COMPUTE BOX :
COMPUTE MASS :
#
loading step : label beginning of the loading loop
#
TOTALISATEURS A ZERO :
INCREMENT STEP :
DISPLAY TIMES :
#
COMPUTE Fext :
COMPUTE BULK :
COMPUTE FREE VELOCITY :
#
SELECT PROX TACTORS :
#
APPELLE Signorini Coulomb :
#
COMPUTE DOF :
UPDATE DOF :
#
APPELLE writing results : writing and displaying results, see SUB
#
AFFICHE TOTALISATEURS :
AFFICHE COMPTEURS :
#
REPETE 299 FOIS :
DEPUIS loading step :
# :
FIN DU PROGRAMME
#
#-----------------------------:
SUB reading data :
# :
READ BODIES :
READ BEHAVIOURS :
READ INI DOF :
READ INI Vloc Rloc : from Vloc_Rloc.INI into verlt
READ DRIVEN DOF :
#
WRITE BODIES :
WRITE BEHAVIOURS :
WRITE DRIVEN DOF :
# :
DISPLAY TACTOR :
DISPLAY POSITION :
DISPLAY INTERACTION :
DISPLAY AVERAGE VELOCITY :
INIT POST :
#START POSTPRO :
#
WRITE OUTPUT GMV :
#
RETOUR
#-----------------------------:
#-----------------------------:
SUB writing results : writing and displaying results
#
WRITE LAST DOF : writing degrees of freedom and velocities
WRITE LAST Vloc Rloc :
#
UPDATE POST :
#POSTPRO DURING COMPUTATION :
WRITE OUTPUT GMV STEP 10 :
#
RETOUR :
#-----------------------------:
#-----------------------------:
SUB Signorini Coulomb :
#
.doing Signorini Coulomb : Some label to draw attention
###ECHO OFF :
RECUP Rloc : from verlt into this
NLGS CHECK TYPE :
QM/16 0.1666D-03 : tol
1.D0 : RELAX
EX PREP NLGS :
Exchange_Local_Global :Stored_Delassus_Loops :
>more :
>iteration :
EX ITER NLGS :
REPETE 50 FOIS :
DEPUIS >iteration :
AFTER ITER CHECK :
# DISPLAY AFTER ITER CHECK :
IOK = FLAG 1 :
INTO AFTER ITER CHECK :
STOP REPETE SI IOK = 0 :
REPETE 500 FOIS :
DEPUIS >more :
EX POST NLGS :
STOCK Rloc : from this into verlt
###ECHO ON
# :
RETOUR :
#-----------------------------:
#
#
#
FIN DU FICHIER
......@@ -6,7 +6,7 @@ checkDirectories()
utilities_DisableLogMes()
overall_DIME(3,0)
SetDimension(3)
### computation's parameters definition ###
utilities_logMes('INIT TIME STEPPING')
......@@ -22,6 +22,7 @@ nb_steps = 300
freq_detect = 1
# * visualization frequency
freq_display = 10
ref_radius = 1.
# * frequence d'ecriture des fichier de sortie
freq_write = 50
# 123456789012345678901234567890
......@@ -80,15 +81,7 @@ RBDY3_WriteDrivenDof()
RBDY3_ComputeMass()
### post3D ##
# 1234567890123456
post3D_SetDisplayedField('POSITION ')
post3D_SetDisplayedField('AVERAGE VELOCITY')
display_3D_SetDisplayedField('TACTOR')
display_3D_SetDisplayedField('INTERACTION')
post3D_Init()
display_3D_SetDisplayFileFormat("VTK")
display_3D_Init(0)
#display_3D_WriteOutDisplayFile(0)
OpenDisplayFiles()
# time loop
for k in range(1, nb_steps + 1):
......@@ -133,10 +126,7 @@ for k in range(1, nb_steps + 1):
RBDY3_UpdateDof()
### post3D ###
post3D_Update()
overall_WriteOutDisplayFile(freq_display)
display_3D_WriteOutDisplayFile(0)
WriteDisplayFiles(freq_display,ref_radius)
TimeEvolution_WriteOutDof(freq_write)
RBDY3_WriteOutDof(-1,9999999)
......@@ -150,3 +140,5 @@ for k in range(1, nb_steps + 1):
TimeEvolution_WriteLastDof()
RBDY3_WriteLastDof()
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 3D
dim = 3
......
......@@ -7,7 +7,7 @@ checkDirectories()
# desactivation des messages de log
utilities_DisableLogMes()
overall_DIME(3,0)
SetDimension(3)
### computation's parameters definition ###
utilities_logMes('INIT TIME STEPPING')
......@@ -23,6 +23,7 @@ nb_steps = 500
freq_detect = 1
# * visualization frequency
freq_display = 50
ref_radius = 1.
# 123456789012345678901234567890
# * nlgs solver parameters
type = 'Exchange_Local_Global '
......@@ -86,14 +87,8 @@ RBDY3_WriteDrivenDof()
RBDY3_ComputeMass()
### post3D ##
# 1234567890123456
post3D_SetDisplayedField('POSITION ')
post3D_SetDisplayedField('AVERAGE VELOCITY')
display_3D_SetDisplayedField('TACTOR')
post3D_Init()
display_3D_SetDisplayFileFormat('VTK')
display_3D_Init(0)
display_3D_WriteOutDisplayFile(0)
OpenDisplayFiles()
WriteDisplayFiles(1,ref_radius)
# time loop
for k in range(1, nb_steps + 1):
......@@ -138,10 +133,7 @@ for k in range(1, nb_steps + 1):
RBDY3_UpdateDof()
### post3D ###
post3D_Update()
overall_WriteOutDisplayFile(freq_display)
display_3D_WriteOutDisplayFile(0)
WriteDisplayFiles(freq_display,ref_radius)
TimeEvolution_WriteOutDof(freq_display)
RBDY3_WriteOutDof(-1,9999999)
......@@ -155,3 +147,5 @@ for k in range(1, nb_steps + 1):
TimeEvolution_WriteLastDof()
RBDY3_WriteLastDof()
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 3D
dim = 3
......@@ -104,7 +107,7 @@ svs+=svspsp
# - avec le tambour
svspdc = see_table(CorpsCandidat='RBDY3',candidat='SPHER',
colorCandidat='BLEUx',behav=lspdc, CorpsAntagoniste='RBDY3',
antagoniste='DNLYC',colorAntagoniste='WALLx',alert=0.1*radius_min)
antagoniste='DNLYC',colorAntagoniste='BLEUx',alert=0.1*radius_min)
svs+=svspdc
# ecriture des fichiers
......
......@@ -17,6 +17,7 @@ echo = 0
# info generation fichier visu
freq_display = 50
ref_radius = 1.e-2
# 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,10 +77,7 @@ overall_WriteDrivenDof()
RBDY2_WriteDrivenDof()
### post2D ##
post2D_SetReferenceRadius(1.e-2)
post2D_SetDisplayedField('CONTACT POINT ')
post2D_SetDisplayedField('TACTOR ')
post2D_Init()
OpenDisplayFiles()
utilities_logMes('COMPUTE MASS')
RBDY2_ComputeMass()
......@@ -133,7 +132,8 @@ for k in xrange(1, nb_steps + 1, 1):
PLJCx_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
......
......@@ -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)
......@@ -73,9 +75,7 @@ overall_WriteDrivenDof()
RBDY2_WriteDrivenDof()
### post2D ##
post2D_SetDisplayedField('CONTACT POINT ')
post2D_SetDisplayedField('TACTOR ')
post2D_Init()
OpenDisplayFiles()
utilities_logMes('COMPUTE MASS')
RBDY2_ComputeMass()
......@@ -124,7 +124,8 @@ for k in xrange(1, nb_steps + 1, 1):
DKDKx_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
......
......@@ -8,7 +8,7 @@ checkDirectories()
#utilities_DisableLogMes()
# a 3D example is considered
overall_DIME(3,0)
SetDimension(3)
### computation's parameters definition ###
utilities_logMes('INIT TIME STEPPING')
......@@ -27,6 +27,7 @@ echo = 0
freq_detect = 1
# * visualization frequency
freq_display = 50
ref_radius = 1.
# * frequence d'ecriture des fichier de sortie
freq_write = 50
# 123456789012345678901234567890
......@@ -88,19 +89,7 @@ RBDY3_ComputeMass()
### post3D ##
# 1234567890123456
# definition of fields to be computed by the post3D module
post3D_SetDisplayedField('POSITION')
post3D_SetDisplayedField('AVERAGE VELOCITY')
post3D_SetDisplayedField('STRESS')
# initialization of the post3D module
post3D_Init()
# definition of another fields to be displayed by the display_3D module
display_3D_SetDisplayedField('TACTOR')
display_3D_SetDisplayedField('INTERACTION')
# choose of the file format for the visualiztion
display_3D_SetDisplayFileFormat('VTK')
# initilization of the display_3D module
display_3D_Init(0)
OpenDisplayFiles()
# compute of a first visualization
#display_3D_WriteOutDisplayFile(0)
......@@ -148,10 +137,8 @@ for k in range(1, nb_steps + 1):
RBDY3_UpdateDof()
### post3D ###
post3D_Update()
WriteDisplayFiles(freq_display,ref_radius)
overall_WriteOutDisplayFile(freq_display)
display_3D_WriteOutDisplayFile(0)
TimeEvolution_WriteOutDof(freq_write)
RBDY3_WriteOutDof(-1,9999999)
......@@ -165,3 +152,5 @@ for k in range(1, nb_steps + 1):
TimeEvolution_WriteLastDof()
RBDY3_WriteLastDof()
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 3D
dim = 3
......
......@@ -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)
......@@ -73,9 +75,7 @@ overall_WriteDrivenDof()
RBDY2_WriteDrivenDof()
### post2D ##
post2D_SetDisplayedField('CONTACT POINT ')
post2D_SetDisplayedField('TACTOR ')
post2D_Init()
OpenDisplayFiles()
utilities_logMes('COMPUTE MASS')
RBDY2_ComputeMass()
......@@ -124,7 +124,8 @@ for k in xrange(1, nb_steps + 1, 1):
DKDKx_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
......
......@@ -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):
DKPLx_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
......
......@@ -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):
DKPLx_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
......
#! /bin/sh -f
if [ $# -eq 0 ]; then
echo 'need a directory name argument'
else
cd $1
python gen_sample.py && python command.py
cd $PWD
fi
......@@ -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):
DKPLx_WriteLastVlocRloc()
#
### post2D ###
overall_WriteOutDisplayFile(freq_display)
post2D_WriteOutDisplayFile(0)
WriteDisplayFiles(freq_display,ref_radius)
### wrtieout handling ###
overall_CleanWriteOutFlags()
CloseDisplayFiles()
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