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

From: Versaci Roberto <Roberto.Versaci_at_eli-beams.eu>
Date: Wed, 27 Jun 2018 11:32:56 +0000

Yes, it can be done using the "#include" preprocessor instructions.
A possible way would be to split the cards defining each of your "geometrical entities" in three groups: bodies, regions, and material assignment.
To be explicit, your input file could look like something:

...
GEOBEGIN
#include file_containing_the_bodies
END
#include file_containing_the_regions
END
GEOEND
#include file_containing_the_assignmat
...

of course you can include more than one file of each type

...
GEOBEGIN
#include file_containing_the_bodies_of_geometric_entity_one
#include file_containing_the_bodies_of_geometric_entity_two
END
#include file_containing_the_regions_of_geometric_entity_one
#include file_containing_the_regions_of_geometric_entity_two
END
GEOEND
#include file_containing_the_assignmat_of_geometric_entity_one
#include file_containing_the_assignmat_of_geometric_entity_two
...


or you can apply the system recursively, i.e. you could have "file_containing_the_bodies" itself including "file_containing_the_bodies_of_geometric_entity_one" and "file_containing_the_bodies_of_geometric_entity_two", etc. etc.

With this system you could actually develop each of your element separately, possibly in the origin (for the simplicity of the development) and then move them using $start_translat cards, e.g.:

...
GEOBEGIN
$start_translat 100. 150. 1000.
#include file_containing_the_bodies_of_geometric_entity_one
$end_translat
$start_translat 120. 100. 500.
#include file_containing_the_bodies_of_geometric_entity_two
$end_translat
END
#include file_containing_the_regions_of_geometric_entity_one
#include file_containing_the_regions_of_geometric_entity_two
END
GEOEND
#include file_containing_the_assignmat_of_geometric_entity_one
#include file_containing_the_assignmat_of_geometric_entity_two
...

I hope this answer isn't too convoluted and can work as a guideline for you.

Cheers,

                                            Roberto



________________________________________
From: owner-fluka-discuss_at_mi.infn.it <owner-fluka-discuss_at_mi.infn.it> on behalf of lars.fjaera_at_gmail.com <lars.fjaera_at_gmail.com>
Sent: 27 June 2018 11:40
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: Separate FLUKA geometry into separate files

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¬c_info
Received on Wed Jun 27 2018 - 21:59:47 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 27 2018 - 21:59:57 CEST