|Message: Re: overwrite density using NIST database||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
In reverse order:
To access the NIST database, section 2.3.5 of the Geant4 Application Developer's manual states:
2.3.5. Define a Material from the Geant4 Material Database
In the example below, air and water are accessed via the Geant4 material database.
Example 2.9. Defining air and water from the internal Geant4 database.
G4NistManager* man = G4NistManager::Instance();
G4Material* H2O = man->FindOrBuildMaterial("G4_WATER"); G4Material* Air = man->FindOrBuildMaterial("G4_AIR");
Probably the most straightforward way to build an inflated lung from deflated composition with only a density change, from the Geant4 manual (ch2 section 3, 2.3.6):
2.3.6. Define a Material from the Base Material
It is possible to build new material on base of an existing "base" material. This feature is useful for electromagnetic physics allowing to peak up for the derived material all correction data and precomputed tables of stopping powers and cross sections of the base material. In the example below, two methods how to create water with unusual density are shown.
Example 2.10. Defining water with user defined density on base of G4_WATER.
density = 1.05*mg/cm3; G4Material* water1 = new G4Material("Water_1.05",density,"G4_WATER");
density = 1.03*mg/cm3; G4NistManager* man = G4NistManager::Instance(); G4Material* water2 = man->BuildMaterialWithNewDensity("Water_1.03","G4_WATER",density);
On Fri, 20 Jul 2012 03:55:51 GMT, Leila Moghadasi wrote:
> Hi Geant4 users I am trying to declare lung tissue using NIST database. > I checked the density of G4_LUNG_ICRP (=1.05 gr/cm^3) which is not what > I want. I appreciate if anyone could tell me if there is a way that I > could declare G4_LUNG_ICRP with density of 0.2gr/cm^3 or I should go for > manual definition of lung through G4Material? Moreover, how I can access > the NIST database, if at all possible? > > Many thanks
|Inline Depth:||Outline Depth:||Add message:|