Loading 7_composite_system/test/python_paradiso/precracked_hierarchical.py +6 −6 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ def run_a_simulation_fuse(seed, targetdirectory): #of mechanics which are equvalent to a network of electrical fuses; #some of the naming schemes reflect this), accuracy (rounding to this #decimal within the simulation) dict_of_simulation_parameters = {"niter":1, "externalV": 1.0, "accuracy":12} dict_of_simulation_parameters = {"niter":1_000_000, "externalV": 1.0, "accuracy":12} #construct the desired simulation setup builder = mn.sim.FuseDirichletBuilder() #builds the system of equations Ku=f solver = mn.sim.PARDISOBindingsSolver() #solves system of equations Loading @@ -129,13 +129,13 @@ def run_a_simulation_fuse(seed, targetdirectory): if __name__ == "__main__": # seeds = [i for i in range(1000, 1050)] seed = 1000 seeds = [i for i in range(1000, 1010)] # seed = 1000 crack_length = 0 destination = f"/FASTTEMP/p7/lpyka/hierarchical_interface/7_composite_system/2_shuffled/a_{crack_length}/" run_a_simulation_fuse(seed=seed, targetdirectory=destination) # with Pool(50) as p: # p.map(partial(run_a_simulation_fuse, targetdirectory=destination), seeds) #run_a_simulation_fuse(seed=seed, targetdirectory=destination) with Pool(10) as p: p.map(partial(run_a_simulation_fuse, targetdirectory=destination), seeds) copy_runfile_to(runfile_name=__file__,destination=destination) print(f"Done with crack {crack_length}") Loading Loading
7_composite_system/test/python_paradiso/precracked_hierarchical.py +6 −6 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ def run_a_simulation_fuse(seed, targetdirectory): #of mechanics which are equvalent to a network of electrical fuses; #some of the naming schemes reflect this), accuracy (rounding to this #decimal within the simulation) dict_of_simulation_parameters = {"niter":1, "externalV": 1.0, "accuracy":12} dict_of_simulation_parameters = {"niter":1_000_000, "externalV": 1.0, "accuracy":12} #construct the desired simulation setup builder = mn.sim.FuseDirichletBuilder() #builds the system of equations Ku=f solver = mn.sim.PARDISOBindingsSolver() #solves system of equations Loading @@ -129,13 +129,13 @@ def run_a_simulation_fuse(seed, targetdirectory): if __name__ == "__main__": # seeds = [i for i in range(1000, 1050)] seed = 1000 seeds = [i for i in range(1000, 1010)] # seed = 1000 crack_length = 0 destination = f"/FASTTEMP/p7/lpyka/hierarchical_interface/7_composite_system/2_shuffled/a_{crack_length}/" run_a_simulation_fuse(seed=seed, targetdirectory=destination) # with Pool(50) as p: # p.map(partial(run_a_simulation_fuse, targetdirectory=destination), seeds) #run_a_simulation_fuse(seed=seed, targetdirectory=destination) with Pool(10) as p: p.map(partial(run_a_simulation_fuse, targetdirectory=destination), seeds) copy_runfile_to(runfile_name=__file__,destination=destination) print(f"Done with crack {crack_length}") Loading