Register to reply

How to figure out of MCNP code writing?

by ms.shafeie
Tags: code, figure, mcnp, writing
Share this thread:
ms.shafeie
#1
Feb28-13, 06:35 AM
P: 16
I have a question about diffrence between ways of defining a certain plate like (3^1/2)x+y+17.3=0 to MCNP code .for example I know we can define it to MCNP with 15 p 3 2 0 6 but I couldn't understand this method 15 10 0 5 8.66 0 10 0 1
Phys.Org News Partner Science news on Phys.org
World's largest solar boat on Greek prehistoric mission
Google searches hold key to future market crashes
Mineral magic? Common mineral capable of making and breaking bonds
Stephan_doc
#2
Mar1-13, 12:57 AM
P: 31
Do you use general plane with equation Ax+By+Cz+D=0, how can obtain A=3, B=2, C=0, D=6 ? What 15 mean, perhaps surface number?
ms.shafeie
#3
Mar5-13, 03:08 AM
P: 16
Quote Quote by Stephan_doc View Post
Do you use general plane with equation Ax+By+Cz+D=0, how can obtain A=3, B=2, C=0, D=6 ? What 15 mean, perhaps surface number?
it's just an imaginary surface .for example a part of a cube or everything like this.and 15 is number of surface. is the way of obtaining A, B, C, D important.?

DEvens
#4
May7-13, 12:55 PM
P: 59
How to figure out of MCNP code writing?

Quote Quote by ms.shafeie View Post
I have a question about diffrence between ways of defining a certain plate like (3^1/2)x+y+17.3=0 to MCNP code .for example I know we can define it to MCNP with 15 p 3 2 0 6 but I couldn't understand this method 15 10 0 5 8.66 0 10 0 1
It's a little hard without the context.

The first one

15 p 3 2 0 6

looks like a plane surface, called surface 15, and defined by Ax + By + Cz D = 0. So this is A=3, B=2, C=0, and D=6. That is, this corresponds to

3A + 2Y - 6 = 0

But the second one

15 10 0 5 8.66 0 10 0 1

seems to be missing something. If it's supposed to be a surface it needs a keyword to indicate the kind of surface. Is there maybe a number and the letters xyzp missing? If it was something like this

20 xyzp 15 10 0 5 8.66 0 10 0 1

that would be a plane, called surface 20, through the following three points.

(15,10,0)
(5, 8.66, 0)
(10,0,1)

Does this help?
Dan


Register to reply

Related Discussions
MCNP code Nuclear Engineering 0
Simple code writing? Math & Science Software 0
Help with writing a matlab code Math & Science Software 3
FMn card in mcnp code Nuclear Engineering 2
Writing pseudo-code Programming & Computer Science 2