Re: "GEOINSIDE" function

From: Giuseppe Battistoni <Giuseppe.Battistoni_at_mi.infn.it>
Date: Fri, 02 Jul 2010 14:43:36 +0200

Dear Maxim
for this purpose there is no other subroutine or function better than
GEOREG to be
used inside the user routines.
Unfortunately the process to determine the region number starting from
the coordinates
is intrinsically a time consuming task.
    Best regards
          Giuseppe

Maxim Gonchar wrote:
> Dear Giuseppe,
>
> Yes, I understand that GEOREG function is inefficient function to use for
> this purpose.
> I admit that there should be a function, that checks if the point is
> inside a specified region.
> And the question is if this function is accessible from the user routine
> and can I use it instead of GEOREG?
>
> Best regards,
> Maxim Gonchar
>
> On Thu, 01 Jul 2010 18:25:17 +0400, Giuseppe Battistoni
> <Giuseppe.Battistoni_at_mi.infn.it> wrote:
>
>
>> Dear Maxim
>> GEOREG can be used, provided that you use it only within source.f
>> and you use the result to reject your sampling of X,Y,Z if the resulting
>> region
>> is not the one you want.
>> In case of rejection you must resample again X,Y,Z.
>>
>> The real warning is that it might be not efficient from the point of
>> view of CPU time...
>> Best regards
>> Giuseppe Battistoni
>>
>> Maxim Gonchar wrote:
>>
>>> Dear FLUKA authors and users,
>>>
>>> I want to write source.f extension which can randomly generate primary
>>> points inside an arbitrary region. The only geometry function I can use
>>> is GEOREG, but it seems for me to be a bit inappropriate. Is there a
>>> function which checks if the point with coordinates (X,Y,Z) is inside
>>> region with number N? And if it is, may I use it or it is only
>>> restricted for the internal usage?
>>>
>>> Thank you in advance.
>>>
>>> regards, Maxim Gonchar
>>>
>>>
Received on Fri Jul 02 2010 - 15:26:37 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 02 2010 - 15:26:37 CEST