Message: Re: Pressure Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Pressure  

Forum: Event and Track Management
Re: Question Pressure (Hubert Chiron)
Date: 10 Oct, 2016
From: Michael H. Kelsey <Michael H. Kelsey>

On Mon, 10 Oct 2016 14:14:21 GMT, Hubert Chiron wrote:
> If I want to see the pressure I do in my
> G4double pressure =
> myTrack->GetVolume()->GetLogicalVolume->GetMaterial()->GetPressure()
> and I find 
>  pressure = 6.32421e+08
> why ?

Because you're looking at Geant4's internal units, where MeV=1, mm=1, and so on. If you want to see the pressure printed out in human readable units, you can do

  G4cout << pressure/hep_pascal << " Pa" << G4endl;


  G4cout << G4BestUnit(pressure) << G4endl;

Notice that in your example, you don't specify a pressure for the material, so you're getting whatever the default is (which I think is 1 atmosphere). And of course pressure doesn't really apply to a solid.

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

1 None: Re: Pressure   (Hubert Chiron - 12 Oct, 2016)
 Add Message Add Message
to: "Re: Pressure "

 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 ]