Skip to content
Snippets Groups Projects
Commit f7d657da authored by Boman Romain's avatar Boman Romain
Browse files

use new gmsh interface by default

parent 4dc6b6b1
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,8 @@ def parms(d={}):
p['Young'] = 18000. # [MPa]
p['Poisson'] = 0.3 # [-]
# p['use_gmshOld'] = True
p.update(d)
return p
......
......@@ -168,7 +168,7 @@ def identify_nodes_brutal(coords, all_no, all_coords, eps=1e-3):
cpu_stop = time.perf_counter()
# print stats
print(f'identify_nodes_brutal done in {cpu_stop-cpu_start} seconds')
print(f'identify_nodes_brutal done in {cpu_stop-cpu_start:.2f} seconds')
if(len(notfound) != 0):
print('WARNING: these nodes have not been identified:')
......@@ -248,7 +248,7 @@ def identify_nodes_SaP(coords, all_no, all_coords, eps=1e-3):
cpu_stop = time.perf_counter()
# print stats
print(f'sweep and prune done in {cpu_stop-cpu_start} seconds')
print(f'sweep and prune done in {cpu_stop-cpu_start:.2f} seconds')
print(f'({ntests} tests instead of {len(coords)*len(all_coords)})')
print(f'{len(coords)} to be identified')
print(f'{len(ntags)} successfully identified')
......
......@@ -69,7 +69,7 @@ def parms(d={}):
p['dt0'] = 1.0 # [s] time step size
# gmsh toolbox
p['use_gmshOld'] = True # use old gmsh interface
p['use_gmshOld'] = False # use old gmsh interface
p.update(d)
return p
......
......@@ -36,6 +36,8 @@ def parms(d={}):
p['Young'] = 20000. # [MPa]
p['Poisson'] = 0.3 # [-]
# p['use_gmshOld'] = True
p.update(d)
return p
......
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