Message: Dynamic Geometry whthin an event. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Dynamic Geometry whthin an event. 

Forum: Geometry
Date: 29 Dec, 2008
From: Kevin Xie <Kevin Xie>

Dear All,

  I'm trying to construct Dynamic Geometry whthin an event in my time-
                                           ^^^^^^^^^^^^^^^
dependent simulation. I notice 4.1.12 in "Geant4 User's Guide for 
Application Developers" also mentions Geant4 can handle dynamic geometry 
between two runs. There are some examples in which geometry varies 
between two runs(extended example TestEM5) or after a given number of 
events(advanced example HadronTherapy) via external commands (macro 
file). 
  So my question is: 
 (1)Is there any way to construct Dynamic Geometry whthin an event?
 (2)Can I add the following code (in 4.1.12) in UserStepAction to vary 
geometry in any step?   

  // Open geometry for the physical volume to be modified ...
  G4GeometryManager::OpenGeometry(physCalor);
  // Modify dimension of the solid ...
  physCalor->GetLogicalVolume()->GetSolid()->SetXHalfLength(12.5*cm);
  // Close geometry for the portion modified ...
  G4GeometryManager::CloseGeometry(physCalor);   

  I would be very grateful if someone give me some suggestion.
  Best regards,
  Kevin

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

1 None: Re: Dynamic Geometry whthin an event.   (yfdeng@student.dlut.edu.cn - 17 Sep, 2009)
(_ None: Re: Dynamic Geometry whthin an event.   (John Apostolakis - 18 Sep, 2009)
(_ None: Re: Dynamic Geometry whthin an event.   (yfdeng@student.dlut.edu.cn - 21 Sep, 2009)
 Add Message Add Message
to: "Dynamic Geometry whthin an event."

 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 ]