simndt2/build/README.md

75 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2024-08-28 21:59:55 +02:00
# New Simulation Setup
## Scenario
newGeometryModel@gui/managerDialogsController.py
(gui/newScenarioController.py
ui_newscenario.py)
```
self.SimNDT_Scenario = Scenario(width,height,pixel,label)
```
## Materials
gui/materialSetupController.py
(gui/materialLibraryController.py)
- apply
```
material = Material(name, rho, c11, c12, c22, c44, label, damping, eta_v, eta_s)
if self.SimNDT_Materials is None:
self.SimNDT_Materials = list()
self.SimNDT_Materials.append(material)
else:
N = len(self.SimNDT_Materials)
if N != 0 and self.__NumMatTmp - 1 < N:
self.SimNDT_Materials[self.__NumMatTmp - 1] = material
else:
self.SimNDT_Materials.append(material)
```
- addMaterial
- deleteMaterial
- updateValues
## Boundary Conditions
gui/boundarySetupController.py
(core/boundary.py)
- setupBC
```
self.Boundaries.append(Boundary(name,BC,Size))
```
## Inspection
gui/singleLaunchSetupController.py
(
gui/signalSetupController.py
gui/singleLaunchSetupController.py
)
- requires Scenario, Source, Inspection, Transducers, Signal
```
self.Signal = Signals("GaussianSine", amplitude, frequency, cycles)
transducer = Transducer('SimNDT-emisor', size, centerOffset, borderOffset, location, Point, window,
False, backing)
if self.Transducers is None:
self.Transducers = list()
self.Transducers.append(transducer)
else:
self.Transducers[0] = transducer
self.Inspection = Transmission(location) | PulseEcho(location)
self.Inspection.hideReceiver=self.hideReceiverRadioButton.isChecked()
```