|Message: Re: Daughter volume sharing a surface with its mother||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)|
On Sun, 07 Dec 2014 23:24:35 GMT, Andrea Conti wrote:
> There have already been many questions about holes: in general, it is > quite clear that the best way to implement a filled hole in a host > material is to represent the hole as a daughter volume of the holed > volume, with the filling material as material of the daughter (or air if > the hole is hollow). > > But this way the daughter will share a surface with the mother (that is, > the mouth of the hole, on the same plane as the host material's surface) > and nobody addressed this problem: is it acceptable ? Or are there going > to be problems with the consistency of the geometry ?
If the surfaces are simple planes along X, Y or Z, then you can do this safely as the coordinate of the surface will be floating-point identical in the two cases. If the surface (even a plane) is not exactly on-axis, you are likely to have situations where the computation of the two surfaces do not coincide. In these cases, particles can get "trapped" between the surfaces, or you can have unexpected boundary interactions, etc. This is why we generally discourage shared surfaces, because the cases where they are safe are quite limited.
If your situation is a through hole, or a cavity in which the material is the same as the material surrounding the volume (e.g., a cube with a beam aperture through it), then you might be better off implementing it as a boolean (G4SubtractionVolume) or as a tesselated solid where you compute surface facets externally. In that case, when you place the volume in the mother, the hole will automatically be filled with the surrounding medium (air, vacuum, whatever).
-- Michael Kelsey
|Inline Depth:||Outline Depth:||Add message:|