Mon 15 Sep 09:44:42 CEST 2025
This commit is contained in:
parent
a2c33de2ac
commit
7e23de5a42
|
@ -416,9 +416,14 @@ def read_simulation(sim_params):
|
|||
|
||||
SimNDT_Simulation.preferredDeviceType = sim_device
|
||||
|
||||
if "dx" in sim_params["Simulation"]:
|
||||
SimNDT_Simulation.preferredDX=sim_params["Simulation"]["dx"]
|
||||
if "dt" in sim_params["Simulation"]:
|
||||
SimNDT_Simulation.preferredDT=sim_params["Simulation"]["dt"]
|
||||
|
||||
print("Finished reading Simulation section.")
|
||||
print(repr(SimNDT_Simulation))
|
||||
# print("\n")
|
||||
#print("\n")
|
||||
return SimNDT_Simulation
|
||||
|
||||
def read_receivers(sim_params):
|
||||
|
@ -661,8 +666,15 @@ def read_export(sim_params):
|
|||
if "enableNumPy" in sim_params["Export"].keys():
|
||||
enableNumPy = sim_params["Export"]["enableNumPy"]
|
||||
else:
|
||||
enableNumPy = True
|
||||
extension = sim_params["Export"]["Extension"]
|
||||
enableNumPy = False
|
||||
if "enableCsv" in sim_params["Export"].keys():
|
||||
enableCsv = sim_params["Export"]["enableCsv"]
|
||||
else:
|
||||
enableCsv = False
|
||||
if "Extension" in sim_params["Export"].keys():
|
||||
extension = sim_params["Export"]["Extension"]
|
||||
else:
|
||||
extension = ".png"
|
||||
if "dB" in sim_params["Export"].keys():
|
||||
db = sim_params["Export"]["dB"]
|
||||
else:
|
||||
|
@ -671,7 +683,11 @@ def read_export(sim_params):
|
|||
color = sim_params["Export"]["Color"]
|
||||
else:
|
||||
color = 0
|
||||
field = sim_params["Export"]["Field"]
|
||||
if "Field" in sim_params["Export"].keys():
|
||||
field = sim_params["Export"]["Field"]
|
||||
else:
|
||||
field = 3
|
||||
|
||||
if "Material" in sim_params["Export"].keys():
|
||||
material = sim_params["Export"]["Material"]
|
||||
else:
|
||||
|
@ -717,6 +733,7 @@ def read_export(sim_params):
|
|||
File_path=save_filepath,
|
||||
enableFields=enableFields,
|
||||
enableNumPy=enableNumPy,
|
||||
enableCsv=enableCsv,
|
||||
Extension=extension,
|
||||
dB=db,
|
||||
Color=color,
|
||||
|
|
Loading…
Reference in New Issue
Block a user