Message: Re: GDML MultiFuse. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: GDML MultiFuse. 

Forum: Documentation and Examples
Re: Question GDML MultiFuse. (Keith Sloan)
Date: Mar 03, 23:37
From: Gabriele Cosmo <Gabriele Cosmo>

Hi Keith,

in the example, the two position/rotation references refer to the second
node of the multi-union; "node-1" and "node-2" define the multi-union
structure and each of the nodes can have a transformation (position/rotation)
associated to them and relative to the structure (in this case only "node-2" has
these).

A transformation associated to the whole multi-union structure gets defined as
for a normal physical volume placement, i.e., for instance:

  <structure>
    <volume name="munion_log">
      <materialref ref="ALU"/>
      <solidref ref="multiUnion"/>
    </volume>
   
    <volume name="TOP">
      <materialref ref="AIR"/>
      <solidref ref="WorldBox"/>
      <physvol name="munion_phys">
        <volumeref ref="munion_log"/>
         <positionref ref="munion_pos"/>              <---
         <rotationref ref="munion_rot"/>              <---
     </physvol>
    </volume>
  </structure>

Cheers, Gabriele

---------------
On Sat, 02 Mar 2019 07:59:15 GMT, Keith Sloan wrote:
> I am trying to Implement GDML and Geant4 Workbenchs for FreeCAD (see
> https://www.freecadweb.org/ ) i.e. Ability to import and export GDML
> from FreeCAD.
> 
> The GDML workbench in its current state is available at
> https://github.com/KeithSloan/FreeCAD_Python_GDML
> 
> I am currently trying to add support for Booleans.
> 
> I have a test file that has a FreeCAD MultiFuse of two objects. I am
> trying to code this up as a GDML MultiUnion. I not clear on the GDML
> documentation.
> 
> The GDML User Guide has
> 
> Another way to describe Union Solid is by using the MultiUnion
> construct, which offers possibility to make union of many solids. The
> following example illustrates the construction of a MultiUnion
> structure:
> 
> Page 28 of 50
> 
> <box name="box_first" x="1"
> <box name="box_second" x="4"
> 
> y="5" z="20" /> y="4.5" z="18" />
> 
> <multiUnion name= ="multiUnion" >
> <multiUnionNode name-"node-1">
> <solid ref="box_first" />
> </multiUnionNode>
> <multiUnionNode name="node-2">
> <solid ref="box_second" />
> <positionref ref="union_position" />
> <rotationref ref="union_rotation" />
> </multiUnionNode>
> </multiUnion> 
> 
> I am confused on the position and rotation references. Do these only
> appear in the last solid? and apply to the combined object? And what
> about the relevant Logical Volume for the MultiUnion?
> 
> Hope you can help - Thanks
> 

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: GDML MultiFuse.   (Keith Sloan - Mar 04, 07:43)
 Add Message Add Message
to: "Re: GDML MultiFuse."

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]