From 3c005d2414597adfa878358ddabd70d480b333b3 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 26 May 2025 11:31:39 +0200 Subject: [PATCH] Mon 26 May 2025 11:30:30 AM CEST --- README.md | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 90 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cdb36ed..15808ad 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,99 @@ Either each snapshot step is svaed in one file, or the snapshots (matrix of spec ## Authors -1. Miguel Molero -2. Stefan Bosse -3. Sanjeev Kumar +1. Miguel Molero (original SimNDT) +2. Stefan Bosse (SimNDT2 and SimNDT2b) +3. Sanjeev Kumar (SimNDT2b) + +## Prerequisits + +``` +python2 +cffi==1.14.5 +Cython==0.29.22 +matplotlib==2.0.0 +numpy==1.16.6 +opencv-python==3.4.9.31 +Pillow==6.2.2 +pyopencl==2019.1.2 +PyOpenGL==3.1.0 +PySide==1.2.2 +pytools==2019.1.1 +scipy==1.2.3 +jsonpickle==2.2.0 +``` ## Batch processing run -1. Update the path to save the simulation data in the JOSN file under the key name ["Snapshot"]["Save_filepath"]. +1. Update the path to save the simulation data in the JOSN file under the key name ["Snapshot"]["Save_filepath"] (or ["Export"]["Save_filepath"]). 2. Run and save simulation command: python main.py "path_to_json_file" +``` +python2 $TOP/src/main.py ParamJSON/simndt_paramas_alu_hole_20mm.json +``` + + +## JSON Format + +### Import + +#### Material + +- `Im:` (front-end) +- `Iabs:` (front-end) +- `Rho:` and `VL:` and `VT:` containing Rho, VL, and VT matrix (back-end, engine) + +``` + "Import": { + "Im": "/tmp/simulation-materials-Im.npy" + } + "Import": { + "Rho": "/tmp/simulation-materials-Rho.npy", + "VL": "/tmp/simulation-materials-VL.npy", + "VT": "/tmp/simulation-materials-VT.npy" + } +``` + +### Export + +#### Material + +Exports material matrix + +`enableMaterial:true,Material:XX` + +- Iabs: Material label matrix w/o boundaries, front-end +- Im: Material label matrix with boundaries (same size as field matrix), front-end +- RV: Rho,VT,VL material matrix set, back-end (engine) +- RC: Rho,C11,.. material matrix set, back-end (engine) + +`enableSignals:true,Field:XX` + +- Export sensor signals (derived from Field XX) + +Fields: "Vx","Vy","[Vx,Vy]","Txx","Txy","Tyy","[Txx:Txy:Tyy]","Dx","Dy","[Dx,Dy]","SV" + +``` + "Export": { + "Step": 100, + "Save_filepath": "/tmp/", + "Filename": "simulation", + "Extension": ".png", + "dB": 60, + "Color": 0, + "Field": "Txx", + "Material": "RV", + "enableFields": false, + "enableNumPy": true, + "enableSignals": true, + "enableImages": false, + "enableMaterial": true, + "enableVolume": true, + "enableView": false, + "sensorShape": [], + "sensorPlacement": [], + "sensorSize": 0 + } +``` +