Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3bdab68f authored by Martin Genet's avatar Martin Genet
Browse files

2016 -> 2017

parent 1a63e71e
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......@@ -25,6 +25,7 @@ def compute_displacements(
sol_basename,
ref_frame,
sol_ext="vtu",
suffix="",
verbose=1):
sol_filenames = glob.glob(sol_folder+"/"+sol_basename+"_[0-9]*."+sol_ext)
......@@ -58,5 +59,5 @@ def compute_displacements(
[warped_disp_farray.SetTuple(k_point, numpy.array(cur_disp_farray.GetTuple(k_point)) - numpy.array(ref_disp_farray.GetTuple(k_point))) for k_point in xrange(n_points)]
myvtk.writeUGrid(
ugrid=warped_mesh,
filename=sol_folder+"/"+sol_basename+"__"+str(k_frame).zfill(sol_zfill)+"."+sol_ext,
filename=sol_folder+"/"+sol_basename+("-"+suffix)*(suffix!="")+"_"+str(k_frame).zfill(sol_zfill)+"."+sol_ext,
verbose=verbose)
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......@@ -53,7 +53,7 @@ def fedic(
regul_poisson=0.0,
tangent_type="Idef", # Idef, Idef-wHess, Iold, Iref
residual_type="Iref", # Iref, Iold, Iref-then-Iold
relax_type="constant", # constant, aitken, gss
relax_type="gss", # constant, aitken, gss
relax_init=1.0,
initialize_DU_with_DUold=0,
tol_res=None,
......@@ -67,6 +67,9 @@ def fedic(
tab = 0
if not os.path.exists(working_folder):
os.mkdir(working_folder)
mypy.print_str(tab,"Checking number of frames…")
image_filenames = glob.glob(images_folder+"/"+images_basename+"_[0-9]*.vti")
images_zfill = len(image_filenames[0].rsplit("_",1)[-1].split(".",1)[0])
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......@@ -121,4 +121,4 @@ plot 0 linecolor rgb "black" notitle,\\
plotfile.close()
os.system("gnuplot "+plotfile_basename+".plt")
os.system("gnuplot \""+plotfile_basename+".plt\"")
......@@ -2,7 +2,7 @@
########################################################################
### ###
### Created by Martin Genet, 2016 ###
### Created by Martin Genet, 2016-2017 ###
### ###
### École Polytechnique, Palaiseau, France ###
### ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment