ANASEN_analysis/anasen_fem
Vignesh Sitaraman ce0bedf704 deleted: Armory/ClassPC1An.h delete4d duplicate
modified:   Armory/ClassPW.h changes made for 4 wire shift to the anode and cathode starting positions
	modified:   Armory/PC_StepLadder_Correction.h
	modified:   anasen_fem/paraview_plotter.py corrected path for new pc
	modified:   run_17F.sh
	modified:   run_27Al.sh
	modified:   run_sx3.sh
2026-05-18 17:46:20 -04:00
..
junk modified: .gitignore 2026-03-16 14:22:35 -04:00
clean.sh modified: .gitignore 2026-03-16 14:22:35 -04:00
dielectrics.dat new file: anasen_fem/dielectrics.dat 2026-04-25 12:26:45 -04:00
garfield_sim.py modified: anasen_fem/garfield_sim.py mad 2026-04-27 17:59:42 -04:00
paraview_plotter.py deleted: Armory/ClassPC1An.h delete4d duplicate 2026-05-18 17:46:20 -04:00
README.md modified: .gitignore 2026-03-16 14:22:35 -04:00
run.py modified: MakeVertex.C 2026-05-15 18:01:31 -04:00
scalars.dat modified: anasen_fem/run.py 2026-04-01 17:42:53 -04:00
scalars.dat.names modified: MakeVertex.C 2026-05-15 18:01:31 -04:00
wires_gmsh2d_bc.py modified: MakeVertex.C 2026-05-15 18:01:31 -04:00
wires2d.sif modified: .gitignore 2026-04-24 14:31:50 -04:00

README for ANASEN fem simulations:

  • There are a few iterations of these simulations that already exist. Be sure to also locate and refer to them if necessary.
  • Install gmsh and its python api by running (Ubuntu 22.04 LTS)
		sudo apt install gmsh python3-gmsh 
  • Gmsh gives us the tools to create a meshgrid that samples the 2d space appropriately to plot the field/equipotential lines.

  • The output file typically has the .msh extension. This is read as input to Elmer, which is the FEM differential-equation solver.

  • Install Elmer via the following steps:

		sudo add-apt-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
		sudo apt install elmerfem-csc-eg
  • Install ParaView for visualizations by downloading from the Linux .tar.gz link at https://www.paraview.org/download/
    • The current version is tested to work on Paraview 6.1.0. The default version in Ubuntu 22.04 repositories has some trouble with scripting
  • v0.0.1, March 10 2026
    • 2d simulations of fields only. gmsh for meshing, elmer for fem, paraview to plot
    • Before running, open paraview_plotter.py to make the bash shebang (#!) point to the location of pvpython or pvbatch
    • python3 run.py should run everything in order, and is hopefully all the files are self-documenting
  • v0.0.2, planned TODO
    • Garfield to take Elmer results and perform charge-transport