Message: Re: Any way to use complex derived units (c.f. CLHEP::Evaluator)? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Any way to use complex derived units (c.f. CLHEP::Evaluator)? 

Forum: Geometry
Re: Question Any way to use complex derived units (c.f. CLHEP::Evaluator)? (Michael H. Kelsey)
Date: 24 Mar, 2018
From: michel maire <michel maire>

On Sat, 24 Mar 2018 05:23:15 GMT, Michael H. Kelsey wrote:
> Is there any way to make use of complex derived units at the macro (or
> file parsing) level? I need to specify electrical/thermodynamic
> properties for some components of my geometry, for example, the heat
> capacity coefficient: W_sigma = 136 J/(m3*K*K).
> 
> I can obviously use units of arbitrary complexity in my C++ code, which
> is what I'm doing now. But it would be awfully nice to be able to put
> that string into my macro (or config file) and have it evaluated along
> the lines of G4UnitDefinition::GetValueOf(). I think that
> CLHEP::Evaluator should be the tool for this, but I haven't found any
> examples where this is utilized.
> 
>    -- Michael Kelsey
> 

 HI Michael,

  In example Hadr04, PhysicsList.cc, I introduce a new unit of Energy, and also a new category of units (Surface/Mass).
 I believe al these units can be used in UI commands.

          Michel

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

1 None: Re: Any way to use complex derived units (c.f. CLHEP::Evaluator)?   (Mike Kelsey - 24 Mar, 2018)
(_ Ok: Re: Any way to use complex derived units (c.f. CLHEP::Evaluator)? SOLVED   (Michael H. Kelsey - 24 Mar, 2018)
 Add Message Add Message
to: "Re: Any way to use complex derived units (c.f. CLHEP::Evaluator)?"

 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 ]