Skip to content

Commit

Permalink
Update Copyrights
Browse files Browse the repository at this point in the history
  • Loading branch information
KeithSloan committed May 3, 2020
1 parent 63ab431 commit eaf555f
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 2 deletions.
Binary file added SampleFiles/Problem_Files/03.FCStd
Binary file not shown.
64 changes: 64 additions & 0 deletions SampleFiles/Problem_Files/SiliceSilicium-ok.gdml
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>
25 changes: 25 additions & 0 deletions freecad/gdml/GDMLCommands.py
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"]
Expand Down
27 changes: 27 additions & 0 deletions freecad/gdml/GDMLObjects.py
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
Expand Down
25 changes: 25 additions & 0 deletions freecad/gdml/GDMLShared.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions freecad/gdml/exportGDML.py
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) *
Expand Down
1 change: 1 addition & 0 deletions freecad/gdml/importGDML.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) *
Expand Down

0 comments on commit eaf555f

Please sign in to comment.