Problem 2313 - Adding entry to RINDEX material property doesn't update GROUPVEL
Summary: Adding entry to RINDEX material property doesn't update GROUPVEL
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: materials (show other problems)
Version: 10.7
Hardware: All All
: P4 normal
Assignee: Daren Sawkey
URL:
Depends on:
Blocks:
 
Reported: 2021-01-20 12:06 CET by Daren Sawkey
Modified: 2021-05-10 15:22 CEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Daren Sawkey 2021-01-20 12:06:34 CET
The material property GROUPVEL (group velocity) is automatically calculated from material property RINDEX (refractive index), when RINDEX is defined.

However adding an entry to RINDEX with 
MPT->AddEntry(“RINDEX”, e[ie],RINDEX);
does not trigger a recalculation of GROUPVEL.

Thanks to Bernardo Tomé for reporting.

Discourse discussion:

https://geant4-forum.web.cern.ch/t/optical-photon-velocity/4035/3
Comment 1 Daren Sawkey 2021-05-10 15:22:38 CEST
This is now fixed. This functionality is now used in the OpNovice example.