-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix position check after propagating (#1094)
- Loading branch information
1 parent
8f5849a
commit c472eea
Showing
7 changed files
with
321 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//----------------------------------*-C++-*----------------------------------// | ||
// Copyright 2024 UT-Battelle, LLC, and other Celeritas developers. | ||
// See the top-level COPYRIGHT file for details. | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
//---------------------------------------------------------------------------// | ||
//! \file celeritas/LeadBoxTestBase.hh | ||
//---------------------------------------------------------------------------// | ||
#pragma once | ||
|
||
#include "GeantTestBase.hh" | ||
|
||
namespace celeritas | ||
{ | ||
namespace test | ||
{ | ||
//---------------------------------------------------------------------------// | ||
/*! | ||
* Test harness for large lead box. | ||
*/ | ||
class LeadBoxTestBase : virtual public GeantTestBase | ||
{ | ||
protected: | ||
std::string_view geometry_basename() const override { return "lead-box"; } | ||
}; | ||
|
||
//---------------------------------------------------------------------------// | ||
} // namespace test | ||
} // namespace celeritas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> | ||
<gdml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/gdml.xsd"> | ||
|
||
<define/> | ||
|
||
<materials> | ||
<isotope N="204" Z="82" name="Pb204"> | ||
<atom unit="g/mole" value="203.973"/> | ||
</isotope> | ||
<isotope N="206" Z="82" name="Pb206"> | ||
<atom unit="g/mole" value="205.974"/> | ||
</isotope> | ||
<isotope N="207" Z="82" name="Pb207"> | ||
<atom unit="g/mole" value="206.976"/> | ||
</isotope> | ||
<isotope N="208" Z="82" name="Pb208"> | ||
<atom unit="g/mole" value="207.977"/> | ||
</isotope> | ||
<element name="Pb"> | ||
<fraction n="0.014" ref="Pb204"/> | ||
<fraction n="0.241" ref="Pb206"/> | ||
<fraction n="0.221" ref="Pb207"/> | ||
<fraction n="0.524" ref="Pb208"/> | ||
</element> | ||
<material name="Pb" state="solid"> | ||
<T unit="K" value="293.15"/> | ||
<MEE unit="eV" value="823"/> | ||
<D unit="g/cm3" value="11.35"/> | ||
<fraction n="1" ref="Pb"/> | ||
</material> | ||
<isotope N="1" Z="1" name="H1"> | ||
<atom unit="g/mole" value="1.00782503081372"/> | ||
</isotope> | ||
<isotope N="2" Z="1" name="H2"> | ||
<atom unit="g/mole" value="2.01410199966617"/> | ||
</isotope> | ||
<element name="H"> | ||
<fraction n="0.999885" ref="H1"/> | ||
<fraction n="0.000115" ref="H2"/> | ||
</element> | ||
<material name="vacuum" state="gas"> | ||
<T unit="K" value="2.73"/> | ||
<P unit="pascal" value="3e-18"/> | ||
<MEE unit="eV" value="21.8"/> | ||
<D unit="g/cm3" value="1e-25"/> | ||
<fraction n="1" ref="H"/> | ||
</material> | ||
</materials> | ||
|
||
<solids> | ||
<box lunit="mm" name="box" x="1e11" y="1e11" z="1e11"/> | ||
<box lunit="mm" name="world" x="1e11" y="1e11" z="1e11"/> | ||
</solids> | ||
|
||
<structure> | ||
<volume name="box"> | ||
<materialref ref="Pb"/> | ||
<solidref ref="box"/> | ||
</volume> | ||
<volume name="world"> | ||
<materialref ref="vacuum"/> | ||
<solidref ref="world"/> | ||
<physvol name="box"> | ||
<volumeref ref="box"/> | ||
</physvol> | ||
</volume> | ||
</structure> | ||
<setup name="Default" version="1.0"> | ||
<world ref="world"/> | ||
</setup> | ||
|
||
</gdml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
{ | ||
"_format": "SCALE ORANGE", | ||
"_version": 0, | ||
"materials": { | ||
"cell_to_mat": [ | ||
-1, | ||
0, | ||
1 | ||
], | ||
"names": [ | ||
"Pb", | ||
"vacuum" | ||
] | ||
}, | ||
"universes": [ | ||
{ | ||
"_type": "simple unit", | ||
"bbox": [ | ||
[ | ||
-5000000000.0, | ||
-5000000000.0, | ||
-5000000000.0 | ||
], | ||
[ | ||
5000000000.0, | ||
5000000000.0, | ||
5000000000.0 | ||
] | ||
], | ||
"cell_names": [ | ||
"[EXTERIOR]", | ||
"box", | ||
"world" | ||
], | ||
"cells": [ | ||
{ | ||
"faces": [ | ||
0, | ||
1, | ||
2, | ||
3, | ||
4, | ||
5 | ||
], | ||
"flags": 1, | ||
"logic": "0 1 ~ & 2 & 3 ~ & 4 & 5 ~ & ~", | ||
"num_intersections": 6, | ||
"zorder": 2 | ||
}, | ||
{ | ||
"faces": [ | ||
6, | ||
7, | ||
8, | ||
9, | ||
10, | ||
11 | ||
], | ||
"logic": "0 1 ~ & 2 & 3 ~ & 4 & 5 ~ &", | ||
"num_intersections": 6, | ||
"zorder": 2 | ||
}, | ||
{ | ||
"faces": [ | ||
0, | ||
1, | ||
2, | ||
3, | ||
4, | ||
5, | ||
6, | ||
7, | ||
8, | ||
9, | ||
10, | ||
11 | ||
], | ||
"flags": 1, | ||
"logic": "0 1 ~ & 2 & 3 ~ & 4 & 5 ~ & 6 7 ~ & 8 & 9 ~ & 10 & 11 ~ & ~ &", | ||
"num_intersections": 12, | ||
"zorder": 2 | ||
} | ||
], | ||
"md": { | ||
"name": "global", | ||
"provenance": "" | ||
}, | ||
"surface_names": [ | ||
"world.mx", | ||
"world.px", | ||
"world.my", | ||
"world.py", | ||
"world.mz", | ||
"world.pz", | ||
"box.mx", | ||
"box.px", | ||
"box.my", | ||
"box.py", | ||
"box.mz", | ||
"box.pz" | ||
], | ||
"surfaces": { | ||
"data": [ | ||
-5000000000.0, | ||
5000000000.0, | ||
-5000000000.0, | ||
5000000000.0, | ||
-5000000000.0, | ||
5000000000.0, | ||
-5000000000.0, | ||
5000000000.0, | ||
-5000000000.0, | ||
5000000000.0, | ||
-5000000000.0, | ||
5000000000.0 | ||
], | ||
"sizes": [ | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1, | ||
1 | ||
], | ||
"types": [ | ||
"px", | ||
"px", | ||
"py", | ||
"py", | ||
"pz", | ||
"pz", | ||
"px", | ||
"px", | ||
"py", | ||
"py", | ||
"pz", | ||
"pz" | ||
] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
! Copyright 2024 UT-Battelle, LLC and other Celeritas Developers. | ||
! See the top-level COPYRIGHT file for details. | ||
! SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
[GEOMETRY] | ||
global "global" | ||
comp : matid | ||
"Pb" 0 | ||
"vacuum" 1 | ||
|
||
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~! | ||
|
||
[UNIVERSE=general global] | ||
interior "world" | ||
|
||
[UNIVERSE][SHAPE=box box] | ||
widths 10000000000 10000000000 10000000000 ! note: units are in cm | ||
|
||
[UNIVERSE][SHAPE=box world] | ||
widths 10000000000 10000000000 10000000000 | ||
|
||
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~! | ||
|
||
[UNIVERSE][CELL box] | ||
comp "Pb" | ||
shapes box | ||
|
||
[UNIVERSE][CELL world] | ||
comp "vacuum" | ||
shapes world ~box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters