Re: "GEOINSIDE" function

From: Maxim Gonchar <>
Date: Fri, 02 Jul 2010 12:17:38 +0400

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
<> 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 - 13:50:37 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 02 2010 - 13:50:38 CEST