You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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)

When sedlayout = 1, channelorigin is a 3*1 matrix with x,y,z points corresponding to where the channel will be drawn.

p1 =

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

TChannel specifies the thickness of the channel wall.

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

rotate1 <- rotate(channelorigin,90)

When sedlayout = 1, channelorigin is 3*1 matrix with x,y,z points corresponding to where the channel will be drawn. Channelorigin is called from the Channel Program.

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