-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63ab431
commit eaf555f
Showing
7 changed files
with
145 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
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,64 @@ | ||
<?xml version='1.0' encoding='ASCII'?> | ||
<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> | ||
<constant name="HALFPI" value="pi/2."/> | ||
<constant name="PI" value="1.*pi"/> | ||
<constant name="TWOPI" value="2.*pi"/> | ||
<position name="P-GDMLBox_Box_solid__Overlayers1" lunit="mm" z="0.000005"/> | ||
<position name="P-GDMLBox_Box_solid__substrat2" lunit="mm" z="-0.00001"/> | ||
</define> | ||
<materials> | ||
<element name="Hydrogene_nat" Z="1" formula="H"> | ||
<atom unit="g/mole" value="1.008"/> | ||
</element> | ||
<element name="Silicium_nat" Z="14" formula="Si"> | ||
<atom unit="g/mole" value="28.085"/> | ||
</element> | ||
<element name="Oxygene_nat" Z="8" formula="O"> | ||
<atom unit="g/mole" value="15.999"/> | ||
</element> | ||
<material name="Vacuum" formula="Vacuum_Geant4"> | ||
<D unit="g/cm3" value="1e-25"/> | ||
<fraction n="1.0" ref="Hydrogene_nat"/> | ||
</material> | ||
<material name="Silice" formula="Si-O2"> | ||
<D unit="g/cm3" value="2.2"/> | ||
<composite n="1" ref="Silicium_nat"/> | ||
<composite n="2" ref="Oxygene_nat"/> | ||
</material> | ||
<material name="Silicium" formula="Si"> | ||
<D unit="g/cm3" value="2.33"/> | ||
<fraction n="1.0" ref="Silicium_nat"/> | ||
</material> | ||
</materials> | ||
<solids> | ||
<box name="World_solid" x="0.05" y="0.05" z="0.05" lunit="um"/> | ||
<box name="Box_solid__Overlayers" x="0.02" y="0.02" z="0.01" lunit="um"/> | ||
<box name="Box_solid__substrat" x="0.02" y="0.02" z="0.02" lunit="um"/> | ||
</solids> | ||
<structure> | ||
<volume name="Box__substrat"> | ||
<solidref ref="Box_solid__substrat"/> | ||
<materialref ref="Silicium"/> | ||
</volume> | ||
<volume name="Box__Overlayers"> | ||
<solidref ref="Box_solid__Overlayers"/> | ||
<materialref ref="Silice"/> | ||
</volume> | ||
<volume name="ThisWorld"> | ||
<solidref ref="World_solid"/> | ||
<materialref ref="Vacuum"/> | ||
<physvol> | ||
<volumeref ref="Box__Overlayers"/> | ||
<positionref ref="P-GDMLBox_Box_solid__Overlayers1"/> | ||
</physvol> | ||
<physvol> | ||
<volumeref ref="Box__substrat"/> | ||
<positionref ref="P-GDMLBox_Box_solid__substrat2"/> | ||
</physvol> | ||
</volume> | ||
</structure> | ||
<setup name="Default" version="1.0"> | ||
<world ref="ThisWorld"/> | ||
</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 |
---|---|---|
@@ -1,3 +1,28 @@ | ||
#************************************************************************** | ||
#* * | ||
#* Copyright (c) 2017 Keith Sloan <[email protected]> * | ||
#* (c) Dam Lamb 2020 * | ||
#* * | ||
#* This program is free software; you can redistribute it and/or modify * | ||
#* it under the terms of the GNU Lesser General Public License (LGPL) * | ||
#* as published by the Free Software Foundation; either version 2 of * | ||
#* the License, or (at your option) any later version. * | ||
#* for detail see the LICENCE text file. * | ||
#* * | ||
#* This program is distributed in the hope that it will be useful, * | ||
#* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
#* GNU Library General Public License for more details. * | ||
#* * | ||
#* You should have received a copy of the GNU Library General Public * | ||
#* License along with this program; if not, write to the Free Software * | ||
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * | ||
#* USA * | ||
#* * | ||
#* Acknowledgements : * | ||
#* * | ||
#************************************************************************** | ||
|
||
__title__="FreeCAD GDML Workbench - GUI Commands" | ||
__author__ = "Keith Sloan" | ||
__url__ = ["http://www.freecadweb.org"] | ||
|
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 |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# -*- coding: utf8 -*- | ||
#************************************************************************** | ||
#* * | ||
#* Copyright (c) 2017 Keith Sloan <[email protected]> * | ||
#* (c) Dam Lamb 2020 * | ||
#* * | ||
#* This program is free software; you can redistribute it and/or modify * | ||
#* it under the terms of the GNU Lesser General Public License (LGPL) * | ||
#* as published by the Free Software Foundation; either version 2 of * | ||
#* the License, or (at your option) any later version. * | ||
#* for detail see the LICENCE text file. * | ||
#* * | ||
#* This program is distributed in the hope that it will be useful, * | ||
#* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
#* GNU Library General Public License for more details. * | ||
#* * | ||
#* You should have received a copy of the GNU Library General Public * | ||
#* License along with this program; if not, write to the Free Software * | ||
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * | ||
#* USA * | ||
#* * | ||
#* Acknowledgements : * | ||
#* * | ||
#* * | ||
#************************************************************************** | ||
|
||
import FreeCAD, FreeCADGui, Part | ||
from pivy import coin | ||
import math | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,31 @@ | |
# single access to globals | ||
# anything requiring access to globals needs to call a function in this file | ||
# anything needing to call eval needs to be in this file | ||
#************************************************************************** | ||
#* * | ||
#* Copyright (c) 2017 Keith Sloan <[email protected]> * | ||
#* (c) Dam Lamb 2020 * | ||
#* * | ||
#* This program is free software; you can redistribute it and/or modify * | ||
#* it under the terms of the GNU Lesser General Public License (LGPL) * | ||
#* as published by the Free Software Foundation; either version 2 of * | ||
#* the License, or (at your option) any later version. * | ||
#* for detail see the LICENCE text file. * | ||
#* * | ||
#* This program is distributed in the hope that it will be useful, * | ||
#* but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
#* GNU Library General Public License for more details. * | ||
#* * | ||
#* You should have received a copy of the GNU Library General Public * | ||
#* License along with this program; if not, write to the Free Software * | ||
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * | ||
#* USA * | ||
#* * | ||
#* Acknowledgements : * | ||
#* * | ||
#* * | ||
#************************************************************************** | ||
|
||
from math import * | ||
import FreeCAD, Part | ||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#*************************************************************************** | ||
#* | ||
#************************************************************************** | ||
#* * | ||
#* Copyright (c) 2019 Keith Sloan <[email protected]> * | ||
#* (c) 2020 Dam Lamb * | ||
#* * | ||
#* This program is free software; you can redistribute it and/or modify * | ||
#* it under the terms of the GNU Lesser General Public License (LGPL) * | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
#************************************************************************** | ||
#* * | ||
#* Copyright (c) 2017 Keith Sloan <[email protected]> * | ||
#* (c) Dam Lamb 2020 * | ||
#* * | ||
#* This program is free software; you can redistribute it and/or modify * | ||
#* it under the terms of the GNU Lesser General Public License (LGPL) * | ||
|