Re: [fluka-discuss]: Separate FLUKA geometry into separate files

From: Alfredo Ferrari <alfredo.ferrari_at_cern.ch>
Date: Wed, 27 Jun 2018 13:51:55 +0200

Dear Lars

the answer is yes. In FLUKA you can #include your geometry file, and
inside your geometry file you can further include sub-pieces of the
geometry, eg:

....

GEOBEGIN
COMBNAME
     0 0
#include test.geo
GEOEND

....

where test.geo is (no blank lines):
* Black body
SPH blkbody 0.0 0.0 0.0 100.
* Void sphere
SPH void 0.0 0.0 0.0 10.
#include targetBody.geo
END
* Black hole
BLKBODY 5 +blkbody -void
* Void around
VOID 5 +void -target
#include targetRegion.geo
END

and targetBody.geo is (no blank lines):
* Target RPP
RPP target -0.0025 0.0025 -0.0025 0.0025 -0.0025 0.0025

and targetRegion.geo is (no blank lines):
* Target
TARGET 5 +target

Of course this is a naive example.

            Ciao
           Alfredo


+----------------------------------------------------------------------+
| Alfredo Ferrari || Tel.: +41.22.76.76119 |
| CERN-EN/STI || Fax.: +41.22.76.69474 |
| 1211 Geneva 23 || e-mail: Alfredo.Ferrari_at_cern.ch |
| Switzerland || |
+----------------------------------------------------------------------+

On Wed, 27 Jun 2018, lars.fjaera_at_gmail.com wrote:

> Dear FLUKA experts,
>
> I am working on a project where I am implementing a proton beam line into
> FLUKA.
> As such, the geometry in my input file has gotten quite large with many
> small geometry definitions and regions.
> Furthermore, some parts of the beam line will be patient specific, while the
> rest of the beam line is identical for all patients.
> In that regard, I was wondering if there is any possibility to spilt my
> geometry into separate files, and read these files into the main input file
> where the geometry is fixed.
>
> Best regards,
> Lars Fredrik Fjæra
> University of Bergen
>
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
>

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Wed Jun 27 2018 - 22:11:00 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 27 2018 - 22:11:02 CEST