Message: Re: Change the properties of specific surfaces of a physical volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Change the properties of specific surfaces of a physical volume 

Forum: Geometry
Re: Question Change the properties of specific surfaces of a physical volume (JungEun Elena Suh)
Date: 03 Dec, 2014
From: Gumplinger Peter <Gumplinger Peter>

Dear Suh,

> First, here I have some physical volume, for example a cube. Of course it has 6 surfaces.
> I want to change a surface property of this cube, but only 2 surfaces of it.
> Is it possible to change the properties of specific surfaces of a physical volume?

Yes, it is but only with a trick. What you need to do is place a different volume on the outside of the surfaces you want to be different. If you want 2 surfaces to be different from the other four, you need to place a different volume on the outside of each; e.g. two volumes. The volumes themselves can have the same physical properties as the outside and they can be very thin. This allows you to specify a specific G4LogicalBorderSurface to each of the two volumes and a different one to the other four surfaces.

> Somebody said that I can change the roughness of a surface using 'sigmaalpha',
> or optical_surface->SetPolish(a number between 0 and 1), (0 means maximum roughness, 1 means perfect smoothness.)

yes

> I think that, if I can select one surface of a volume, then I just can define optical surface, set finish as polished,

No, set finish to 'ground'.

> and set polish with some value between 0 and 1 to make that surface rough.

if (fSurfaceRoughness < 1.)
opSurface = new G4OpticalSurface("RoughSurface",          // Surface Name
                                 glisur,                  // SetModel
                                 ground,                  // SetFinish                                      
                                 dielectric_dielectric,   // SetType
                                 fSurfaceRoughness);      // SetPolish

> (or if it is impossible to select surfaces,

Yes, it is impossible.

> should I attach some volume there and set border-boundary?- surface parameter between them?)

Exactly!

Peter

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

1 More: Re: Change the properties of specific surfaces of a physical volume   (JungEun Elena Suh - 09 Dec, 2014)
1 Idea: Re: Change the properties of specific surfaces of a physical volume   (JungEun Elena Suh - 11 Dec, 2014)
1 More: Re: Change the properties of specific surfaces of a physical volume   (JungEun Elena Suh - 11 Dec, 2014)
2 Sad: Re: Change the properties of specific surfaces of a physical volume   (JungEun Elena Suh - 12 Dec, 2014)
 Add Message Add Message
to: "Re: Change the properties of specific surfaces of a physical volume"

 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 ]