Message: 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

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

Forum: Geometry
Date: 23 Mar, 2018
From: Michael H. Kelsey <Michael H. Kelsey>

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

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)?   (michel maire - 24 Mar, 2018)
(_ 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: "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 ]