|Message: Re: building a new type of OpticalSurface model||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)|
Dear Yen-Yung Chang,
Sorry for my late reply. Your use case is a valid and desirable user requirement. I don't have a ready-made solution and, for the moment, I can't propose one here but I can say that the extension you require involves the usage of the (relatively new) class: G4Physics2DVector. I am afraid that a transparent backward compatible extension needs some thought and maybe some C++ (OO) tricks and will probably involve modifications to a host of classes: G4MaterialPropertiesTable, G4OpBoundaryProcess, ...
Yes, a bit complicated. You may well be able to come up with a hack that will satisfy your specific case. In any case, please let us know how you succeeded and your implementation. For my part, I'll keep this in mind and hopefully extend G4 to cases where optical properties are functions of not just one but two parameters. Perhaps, someone in the community has already solved this problem(?)
Best regards, Peter
On Wed, 24 Oct 2012 00:14:05 GMT, Yen-Yung Chang wrote:
> Hi all. How can I have a customized optical surface which has its > reflectance, absorbanc and transmittance depend on both optical photon > energy and incident angle? I've generated a table of these 3 numbers > (vs. incident angle & photon wavelength) according to my physical model. > I've check the G4OpBOundaryProcess.cc and I think I can adopt something > like DoAbsorption(), calculating incident angle, reflectioin...and many > things then build another surface process explicitly. But it's still > seem a bit complicate. Thank you very much! >