modified: anasen_fem/run.py

modified:   anasen_fem/scalars.dat.names
	modified:   anasen_fem/wires_gmsh2d_bc.py
This commit is contained in:
Vignesh Sitaraman 2026-03-31 10:16:28 -04:00
parent 68efdadc8f
commit 5b34251638
3 changed files with 17 additions and 11 deletions

View File

@ -1,15 +1,21 @@
import code
import os import os
#val=-178.3 val=-178.3
val=17.83 # val=17.83
count=11 count=0
while val<178.3+0.1: while val<17.83+0.1:
print(val) print(val)
os.system("python3 wires_gmsh2d_bc.py "+str(val)) os.system("python3 wires_gmsh2d_bc.py "+str(val))
os.system("ElmerGrid 14 2 wires2d.msh") os.system("cp wires2d/mesh_files/wires2d.msh wires2d/mesh_files/%02d_%1.4f.msh"%(count,val))
os.system("ElmerSolver wires2d.sif") os.system("ElmerGrid 14 2 wires2d/mesh_files/wires2d_%02d_%1.4f.msh"%(count,val))
os.system("cp wires2d.sif wires2d/sif_files/wires2d_%02d_%1.4f.sif"%(count,val))
os.system("ElmerSolver wires2d/sif_files/wires2d_%02d_%1.4f.sif"%(count,val))
os.system("./paraview_plotter.py") os.system("./paraview_plotter.py")
os.system("cp contour_output.png contour_output_z_%02d_%1.4f.png"%(count,val)) os.system("cp contour_output.png png/contour_output_z_%02d_%1.4f.png"%(count,val))
# os.system("cp field_output.png field_ouput_z_%02d_%1.4f.png"%(count,val))
val=val+17.83 val=val+17.83
count = count + 1 count = count + 1
break

View File

@ -1,8 +1,8 @@
Metadata for SaveScalars file: ./scalars.dat Metadata for SaveScalars file: ./scalars.dat
Elmer version: 26.1 Elmer version: 26.1
Elmer compilation date: 2026-03-15 Elmer compilation date: 2026-03-15
Solver input file: wires2d.sif Solver input file: wires2d/sif_files/wires2d_00_-178.3000.sif
File started at: 2026/03/23 20:55:05 File started at: 2026/03/31 10:12:11
Variables in columns of matrix: Variables in columns of matrix:
1: res: potential difference 1: res: potential difference

View File

@ -147,10 +147,10 @@ gmsh.model.setPhysicalName(1,30,"cathode_wires")
gmsh.model.addPhysicalGroup(2,[anasen_barrel],tag=13) gmsh.model.addPhysicalGroup(2,[anasen_barrel],tag=13)
gmsh.model.setPhysicalName(1,13,"gas") gmsh.model.setPhysicalName(1,13,"gas")
gmsh.option.setNumber("Mesh.Algorithm", 6) gmsh.option.setNumber("Mesh.Algorithm", 5)
gmsh.model.mesh.generate(dim=2) gmsh.model.mesh.generate(dim=2)
gmsh.model.mesh.refine() gmsh.model.mesh.refine()
gmsh.write("wires2d.msh") gmsh.write("wires2d/mesh_files/wires2d.msh")
#gmsh.fltk.run() #gmsh.fltk.run()
gmsh.finalize() gmsh.finalize()