Inlet Channel Drawing Script

layer2 - Layernew creates a new light grey layer, "channel."

layer2 <- layernew("channel",ltgrey)

channel1 - Calls the Channel Program to draw a channel.

channel1 <- ChannelDrawing(channelorigin,p1,TChannelWall)

channelorigin =

if layout 2:

  • x: PlantOrigin0 - LSed + WInletChannel
  • y: PlantOrigin1 - TPlantWall
  • z: PlantOrigin2 + HSed - HInletChannel

if layout 3:

  • x: PlantOrigin0 - LSed + WInletChannel
  • y: PlantOrigin1 - TPlantWall
  • z: PlantOrigin2 + HSed - HInletChannel

if layout 4 :

  • x: PlantOrigin0 - LSed + WChannelInlet
  • y: PlantOrigin1 - TPlantWall
  • z: PlantOrigin2 + HSed - HInletChannel

p1 = Specifies the dimensions of the channel cutout.

  • x: WSed - 2TPlantWall
  • y: WInletChannel
  • z: HInletChannel

TChannel specifies the thickness of the channel wall.

Unknown macro: {float}


Top View

rotate1 - Rotate rotates the selected object by the designated degrees.

rotate1 <- rotate(channelorigin,90)

channelorigin =

if layout 2:

  • x: PlantOrigin0 - LSed + WInletChannel
  • y: PlantOrigin1 - TPlantWall
  • z: PlantOrigin2 + HSed - HInletChannel

if layout 3:

  • x: PlantOrigin0 - LSed + WInletChannel
  • y: PlantOrigin1 - TPlantWall
  • z: PlantOrigin2 + HSed - HInletChannel

if layout 4 :

  • x: PlantOrigin0 - LSed + WChannelInlet
  • y: PlantOrigin1 - TPlantWall
  • z: PlantOrigin2 + HSed - HInletChannel

90 = rotation angle

box1 - Creates a box based on two points.

box1 <- box(channelinletwallorigin,channelinletwallorigin + channelinletwalldim)

channelinletwallorigin =

  • x: PlantOrigin0 - LSed + WChannelInlet
  • y: PlantOrigin1
  • z: PlantOrigin2

channelinletwalldim =

  • x: TChannelWall
  • y: WSed
  • z: HSed

bigunion - UnionallA selects all the objects visible in the workspace and joins them all into a single object.

bigunion <- unionallA

box2 - Creates a box based on two points.

box2 <- box(channelinletbox1origin,channelinletbox1origin + channelinletbox1dim)

channelinletbox1origin =

  • x: PlantOrigin0 - LSed - TPlantWall
  • y: PlantOrigin1 + (.5WSed) - (.5LChannelInlet)
  • z: PlantOrigin2 + HSed - HInletChannel

channelinletbox1dim =

  • x: TPlantWall
  • y: LChannelInlet
  • z: HInletChannel

subtract2 - SubtractD subtracts one object from the other based on two points.

subtract2 <- subtractD(PlantOrigin,channelinletbox1origin)

PlantOrigin =

channelinletbox1origin =

  • x: PlantOrigin0 - LSed - TPlantWall
  • y: PlantOrigin1 + (.5WSed) - (.5LChannelInlet)
  • z: PlantOrigin2 + HSed - HInletChannel

box3 - Creates a box based on two points.

box3 <- box(channelinletbox2origin,channelinletbox2origin + channelinletbox2dim)

channelinletbox2origin =

  • x: PlantOrigin0 - LSed
  • y: PlantOrigin1
  • z: PlantOrigin2

channelinletbox2dim =

  • x: WChannelInlet
  • y: WSed
  • z: HSed

subtract3 - SubtractD subtracts one object from the other based on two points.

subtract3 <- subtractD(PlantOrigin,channelinletbox2origin)

PlantOrigin =

channelinletbox2origin =

  • x: PlantOrigin0 - LSed
  • y: PlantOrigin1
  • z: PlantOrigin2

layerset - Layerset selects the layer "0".

layerset <- layerset("0")

viewtops - Rotates the object so that it is viewed from the top.

viewtops <-viewtop1

layerfreeze2 - Layerfreeze locks the layer "channel" so that it cannot be edited.

layerfreeze2 <- layerfreeze("channel")

  • No labels