SSAT
Model API name: ssat
Geant4 SECTOR SHIELDING ANALYSIS TOOL
Version: v3.5
External Input: dose_depth_curve
Input | Value |
---|---|
Quantity | dose_depth_curve |
Input group: ssat / multiplicity: one
macro_inputs
Input | Description | Valid values | Default | Quantity |
---|---|---|---|---|
macro | SSAT macro text |
|
text | |
aux_files | MULASSIS auxiliary files |
|
text |
ssat
Input | Description | Valid values | Default | Quantity |
---|---|---|---|---|
binningScheme | Binning scheme |
lin=Linear log=Logorithmic default=Default |
lin | text |
binningUnit | Binning units |
g/cm2=g/cm2 cm=cm radlen=radlen |
g/cm2 | text |
minimumThickness | Min thickness |
|
0 | length |
maximumThickness | Max thickness |
|
100 | length |
numberOfBins | Number of bins |
|
20 | number |
angular_window
Input | Description | Valid values | Default | Quantity |
---|---|---|---|---|
units | Units |
deg=degrees rad=radians |
deg | text |
minimumTheta | Min theta |
|
0 | planar_angle |
maximumTheta | Max theta |
|
180 | planar_angle |
minimumPhi | Min phi |
|
0 | planar_angle |
maximumPhi | Max phi |
|
360 | planar_angle |
numberPolarBins | Number polar bins |
|
18 | number |
polarBinningInterval | Polar binning interval |
lin=Linear sin=Sine sincos=Sine-Cosine |
lin | text |
numberAzimuthalBins | Number athimuthal bins |
|
36 | number |
sourceX | Source X |
|
0 | length |
sourceY | Source Y |
|
0 | length |
sourceZ | Source Z |
|
0 | length |
U1 | U1 |
|
1 | length |
V1 | V1 |
|
0 | length |
W1 | W1 |
|
0 | length |
U2 | U2 |
|
0 | length |
V2 | V2 |
|
1 | length |
W2 | W2 |
|
0 | length |
DOSECURVE | DOSECURVE |
|
0 | number |
ray_tracing
Input | Description | Valid values | Default | Quantity |
---|---|---|---|---|
angularSamplingDistribution | Angular sampling distribution |
false=Isotropic true=Cosine law |
false | text |
numberOfRaysPerAngularBin | Number of rays per angular bin |
|
100 | text |
pathLengthCalculationMethod | Number of rays per angular bin |
slant=Slant normal=Normal weighted=Weighted |
slant | text |
sourcePositionUnits | Source position units |
micron=Micron mm=mm cm=cm m=m km=km |
cm | text |
|
None
Model example
import json
from os import path
from pathlib import Path
from nom_client.nom_client import NoMClient
here = path.abspath(path.dirname(__file__))
nom_client = NoMClient("SSAT example",
default_server_id="local_server",
debug_output=True)
sapre_model_gto = nom_client.get_model('sapre')
sapre_model_gto.set_params(orbitType="GEN")
sapre_gto_result = nom_client.run_model(sapre_model_gto)
ap8ae8_model = nom_client.get_model('ae8ap8')
ap8ae8_model.set_external_input(external_input_name="trajectory", external_input=sapre_gto_result)
ap8ae8_results = nom_client.run_model(ap8ae8_model)
print(ap8ae8_results)
sd2_model = nom_client.get_model('sd2')
sd2_model.set_external_input(external_input_name="trappedParticleSpectrum", external_input=ap8ae8_results)
sd2_result = nom_client.run_model(sd2_model)
print(sd2_result)
with Path(here + "/spenvis_gdm.gdml").open() as f:
gdml = f.read()
ssat_model = nom_client.get_model('ssat')
binningUnit = "g/cm2"
ssat_model.set_params(sourceX=0.0,
sourceY=0.0,
sourceZ=0.0,
sourcePositionUnits="mm",
minimumTheta=0.0,
maximumTheta=180.0,
minimumPhi=0.0,
maximumPhi=360.0,
units="deg",
numberPolarBins=6,
numberAzimuthalBins=12,
polarBinningInterval="sin",
U1=1.0,
V1=0.0,
W1=0.0,
U2=0.0,
V2=1.0,
W2=0.0,
minimumThickness=0.1,
maximumThickness=100.0,
binningUnit=binningUnit,
numberOfBins=30,
binningScheme="log",
pathLengthCalculationMethod="slant",
angularSamplingDistribution="true",
numberOfRaysPerAngularBin=10000,
aux_files=json.dumps({"maingdml.gdml": gdml}))
#ssat_model.set_external_input(external_input_name="dose_depth_curve", external_input=sd2_result)
ssat_result = nom_client.run_model(ssat_model)
print(ssat_result)
Model references
No references