Gate 7.2学习笔记(三)

一、定义几何

几何的定义是设计仿真的关键步骤,因为它是通过描述成像设备和要扫描的对象的几何定义。然后通过几何的组件跟踪粒子。

1、The world

<1> The world is the only volume already defined in GATE when starting a macro.

<2> All volumes are defined as daughters or grand-daughters of the world.

<3> The world volume is a typical example of a GATE volume and has predefined properties.

<4> The world volume is a box centred at the origin. For any particle, tracking stops when it escapes from the world volume.

<5> The world volume can be of any size and has to be large enough to include all volumes involved in the simulation.

# World
# Define the world dimensions
##
/gate/world/geometry/setXLength 100 cm
/gate/world/geometry/setYLength 100 cm
/gate/world/geometry/setZLength 100 cm

2、Creating a volume

The tree includes the following commands:

setMaterial: To assign a material to the volume
attachCrystalSD: To attach a crystal-SensitiveDetector to the volume
attachPhantomSD: To attach a phantom-SensitiveDetector to the volume
enable: To enable the volume
disable: To disable the volume
describe: To describe the volume

The tree includes sub-trees that relate to different attributes of the volume Volume_Name. The available sub-trees are:
daughters: To insert a new 'daughter' in the volume
geometry: To control the geometry of the volume
vis: To control the display attributes of the volume
repeaters: To apply a new 'repeater' to the volume
moves: To 'move' the volume
placement: To control the placement of the volume

SPECT中的例子

# CRYSTAL
# Create the crystal volume
##
/gate/SPECThead/daughters/name crystal
/gate/SPECThead/daughters/insert box
/gate/crystal/geometry/setXLength 1. cm
/gate/crystal/geometry/setYLength  19. cm
/gate/crystal/geometry/setZLength  28. cm
/gate/crystal/placement/setTranslation  0. 0. 0. cm
/gate/crystal/setMaterial NaI
/gate/crystal/vis/setColor yellow

3、Repeating a volume

<1> 要创建X个相同的卷,不需要创建X个不同的卷。必须创建一个卷,然后重复。

<2> Repeating a volume有四种不同的方式:线性中继器,环形中继器,立方阵列中继器和象限中继器。

<3>要列出为卷Name_Volume定义的中继器,请使用:

/gate/Name_Volume/repeaters/info  

具体内容可参见下列网址

Users Guide V7.2:Defining a geometry - Wiki OpenGATE
http://wiki.opengatecollaboration.org/index.php/Users_Guide_V7.2:Defining_a_geometry#Repeating_a_volume

4、Placing a volume

使用子树定义几何体中卷的位置

/placement/
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值