Professional Documents
Culture Documents
Exercise II Tutorial v10
Exercise II Tutorial v10
Exercise II Tutorial v10
General description
An experimental test carried out in Advantica Bangbox is simulated; the experimental setup is composed by the object Bangbox, containing a pattern of 40 pipes, and three
external targets. Geometry and worst case scenario are defined, FLACS job is created and solved.
Another geometry is then created, where a pattern of 20 pipes is described; another FLACS job is created and solved.
Results from the two analyses are compared, assessing the effect of the congestion degree within the process zone.
CREATING TWO
EXPERIMENTAL SETUPS OF
ADVANTICA BANG-BOX
using CASD geometry
database
General description
The experimental setup is composed by the object Bangbox, containing a pattern of pipes, and three external targets.
Bangbox: size 9m x 4.5m x 4.5m, wall thickness 0.02m; 50 % vent centrally on front wall (vent opening 3.18m x 3.18m).
Ground object: pos (-10m, -10m, -0.1m) and size (55 m, 35 m, 0.1 m)
Targets: 3 boxes, (2 x 2.5 x 2 m3), 2 at axis of box 13 m & 26 m outside vent, one 13m perpendicular from front of Bangbox (position 8, 15.25, 0)
Pipe pattern #1: name PIPES40: 40 y-direction D=0.18 m pipes (x = 1, 2, 3, 4, 5, 6, 7, 8 m, z=0.45, 1.35, 2.25, 3.15, 4.05 m)
Pipe pattern #2: name PIPES20: 20 y-direction D=0.18 m pipes (x = 1, 3, 5, 7 m, z=0.45, 1.35, 2.25, 3.15, 4.05 m)
TO BE TYPED
Click the desktop shortcut FLACS Runmanager
Run Manager -> Tools -> CASD (or click the FLACS pre-processor icon
Geometry-> Database
EXPLANATION
starting the Runmanager (FLACS Run Manager window opens)
starting up the preprocessor CASD (CASD@_v10.0 window opens)
open the Database window
New Project -> type the name of the project (as an example, EXERCISE_II),
<OK>
click on the project record to select
New Geometry -> type the name of the new geometry (as an example,
SETUP_01), <OK>
click on the geometry record to select
CREATING MATERIALS (colors)
in the Geometry Database: FLACS COURSE DB window select Materials
select/create the database folder; note: what you type in the file name is not the name of
the database file (this will always be CASD_DB), but the name of the folder in which the
database will be stored. Creating a new database results in that CASD is automatically
connected to the database.
CREATING OBJECTS
in the Geometry Database: FLACS COURSE DB window select Objects;
create RED,
YELLOW; GREEN,
CYAN, BLUE,
MAGENTA colors
Note: materials in
CASD only refer to
object colors, they
have no effect on
FLACS calculations
open the sub-window Objects for the creation of objects (to be used as instances in CASD
geometries)
Note: a list of 100 object classes appears: this is only a default structure which can be used
in order to group/order objects (class names can be renamed); just leave the Default one
selected: new objects will be created inside this group
in the Object subwindow, select the object TARGET, ->change material -> RED
(if not already RED)
the object window TARGET opens in order to start the creation of the new object
a box 2 x 2.5 x 2 is created, origin 0, 0, 0
NOTE: origin is the local origin for object definition (real position will be defined later)
save object and exit;
the object TARGET is listed in the FLACS COURSE DB window
NOTE: this is a quite simple object, only composed of 1 primitive
change color to red
the object window GROUND opens in order to start the creation of the new object
a box 55 x 35 x 0.1 is created, origin -10, -10, -0.1
NOTE: origin is the local origin for object definition
change color to green
save object and exit;
the object GROUND is listed in the FLACS COURSE DB window
NOTE: this is a quite simple object, only composed by 1 primitive
the object window BANGBOX opens in order to start the creation of the new object
the first lateral wall is created, origin 0, 0, 0 and size 9 x 0.02 x 4.5 m
the second lateral wall is created as a copy of the first wall at Y distance 4.5 m
the bottom slab is created, origin 0, 0, 0 and size 9 x 4.5 x 0.02 m
the top slab is created as a copy of the bottom at Z distance 4.5 m
the back wall is created, origin 0, 0, 0 and size 0.02 x 4.5 x 4.5 m
the front wall is created as a copy of the back wall at X distance 9 m
the dimension of the cutter/drill should be:
X>expected grid size (also more than the front wall primitive thickness to be cut); i.e. X=2
Y=3.18, Z=3.18 (dimensions of the desired hole)
the position of the cutter/drill should be:
X<9 (less than the min alignment of the front wall primitive to be cut); i.e. X=8
Y=such that a central hole is obtained=(4.5-3.18)/2=0.66
Z=idem=0.66
NOTE: the max surface of the cutter/drill will be at position 8+2=10>9.02 ->OK
Add the box corresponding to the cutter/drill in the usual way
a Left Difference operation will be executed: this means that the last primitive created will
be used as a cutter/drill for cutting/drilling the hole in the previous primitive (the left
primitive in the creation process logical string)
the primitives forming the Bangbox are glued together; in order to save an object, it should
be defined by one single thread in the creation process logical string
save object and exit;
the object BANGBOX is listed in the FLACS COURSE DB window
you can select it, rename, change material (color)
change color to cyan
the object window PIPES40 opens in order to start the creation of the new object
the first pipe (lower backside) is created
the remaining 7 pipes in the lowest row are created, with spacing 1 m in X direction
the first pipe is glued to the other 7; now all the 8 pipes are selected (showed in white
color)
the remaining 4 rows are created, with spacing 0.9 m in Z direction
CASD List window is open with the list of the available objects
an instance of the object BANGBOX is created in the geometry at absolute position 0,0,0
an instance of the object PIPES40 is created in the geometry at absolute position 0,0,0
an instance of the object GROUND is created in the geometry at absolute position 0,0,0
the position of target 1 is:
Y and Z idem
Geometry -> Instance -> TARGET, <OK>, 22,1,0
an instance of the object TARGET is created in the geometry at absolute position 22,1,0
Geometry -> Instance -> TARGET, <OK>, 35,1,0
an instance of the object TARGET is created in the geometry at absolute position 35,1,0
Tip: as an alternative, you can use the Duplicate command once selected the
first TARGET instance
Geometry -> Instance -> TARGET, <OK>, 8,15,0
an instance of the object TARGET is created in the geometry at absolute position 8,15,0
Geometry SETUP_01 is now ready; it is already stored in the DB, no save command is needed. You can now exit from DB and CASD, or go on defining a scenario starting
from the currently selected geometry, or go on defining other objects/geometries in the DB: let us go on creating the second geometry
CREATING A SECOND GEOMETRY
in the Geometry Database: FLACS COURSE DB window select
make active the
Geometry/SETUP_01
SETUP_01
geometry in the
sub-window
Geometry: all the
command buttons
are now enabled
the object window PIPES20 opens in order to start the creation of the new object
10
the instance
PIPES40 is deleted
Tip: selecting instances: as an alternative, you can select an instance by clicking on it with left button on CASD@_v9.1 window; press <esc> and rotate the model if the
clicking does not work on the current view;
you can also run through the list of instances using <Ctrl L>/<Ctrl R> commands
Geometry -> Instance -> PIPES20, <OK>, 0,0,0
an instance of the object PIPES20 is created in the geometry at absolute position 0,0,0
Geometry SETUP_02 is now ready; it is already stored in the DB, no save command is needed. You can now exit from DB and CASD, or go on defining a scenario starting
from the currently selected geometry, or go on defining other objects/geometries in the DB: let us go on creating a scenario from SETUP_01
11
CREATING A SCENARIO
FOR SETUP_01
GEOMETRY
General description
A computational domain spanning [min 0, -10, 0 max 40, 20, 15] in X, Y, Z respectively is defined. A regular 0.5m grid is defined; grid is stretched toward boundaries along
non relevant directions; in this case we want to investigate far field pressures up to targets: no grid stretching is allowed up to targets; as a consequence, stretching toward
boundaries in -Y and +Z directions are allowed.
A worst case gas cloud is defined, filling the entire module with natural gas at maximum reactivity concentration (1.05ER).
Monitor points are defined for post processing, as well as variables list to be stored for 1d and 2d/3d output plots.
Plane wave boundary conditions are set, suitable for blast scenarios.
Finally, parameters for simulation and output control are set.
TO BE TYPED
EXPLANATION
CREATING A JOB USING SETUP_01 GEOMETRY
in the Geometry Database: FLACS COURSE DB window double click on
make active the SETUP_01 geometry in the sub-window Geometry; the selected
Geometry/SETUP_01
geometry is shown in the CASD@_v9.1 window
file -> save as -> 010100 browse to the desired working directory and save
010100.caj and cg, cm, co, cs files are generated; co and cm files contain the geometry
(for PORCALC and FLOWVIS respectively); cg and cs contain the grid and scenario files
(default values are declared in this preliminary save action, when no grid nor scenario has
been defined yet).
Note: the Save command is not intended for saving the geometry into the DB (as the DB is updated in real time while working on it); it is intended to save the files defining
12
a FLACS job; in particular, it generates the co file containing the current geometry
CREATING A GRID
simulation volume -> Minimum 0, -10, 0, Maximum 40,20,15
0.5 m grid in the core of the geometry
general commands for grid generation/control (not in the Quick Grid functionality)
Selecting grid lines: a grid interval along the current direction is permanently selected and reported in the status text window at the bottom of the window;
<CRTL>ArrowLeft/ArrowRight : move the (min) selection boundary
<CRTL>ArrowUp/ArrowDown : move the (max) selection boundary
Tip: Look at the status text window in the bottom of the window to check the current selection interval
Showing grid lines: choose among Grid/Display/Off-Working Direction-All Directions;
non selected lines are shown in red, selected lines are shown in white
Using the new Quick Grid functionality
grid --> quick grid (or CTRL+g) --> Keep Stretched domain enabled
uniform grid is defined in core of the geometry and where it is interesting to have
accurate results, e.g. at targets grid is stretched outside these areas
Core domain Minimum 0, -1, 0, Maximum 40, 20, 5
the simulation volume for the uniform grid is defined
Stretched domain -> Minimum 0, -10, 0, Maximum 40,20,15
the total simulation volume is defined
Change cell size (0.5 m) -> number of cells are automatically calculated
80 cells are created within the selected X interval
42 cells are created within the selected Y interval; 10 cells are created within the selected
Z interval
Stretched grid is automatically determined
Total 51 cells in Y and 19 cells in Z direction
Note the number of cells and memory requirement
CHECKING THE GRID
grid -> display -> all directions
visualize the grid in all directions
13
the Grid status window is visualized, where relevant data for grid q.a. are reported; the
grid is composed by 77520 cells
save the job; new grid stored in cg file
14
Scenario -> MONITOR_POINTS -> ADD -> EDIT 0.75, 2.25, 0.75
COPY and thereafter PASTE 8 times
edit the X coordinate of the other Monitor Points by setting it to 5.75, 14.75,
21.75, 23.25, 24.25, 34.75, 36.25 and 37.25 for points 2-9 (double click to edit)
Select point at 23.25m, change 3rd position to 2.25m, do the same for the
point at 36.25m
ADD 3 more points [9.25, 14.75, 0.75]; [9.25, 16.25, 2.25]; [9.25, 17.75, 0.75]
Select all monitor points Edit
Select variables FUEL, P, PIMP, PROD, RHO, T, UVW, DRAG, MACH
rd
15
CREATING A
SCENARIO FOR
SETUP_02
GEOMETRY
General description
The second scenario is quickly created by saving co and cm files from CASD, and adopting the same cg and cs files of 010101 job.
TO BE TYPED
CREATING A JOB USING SETUP_02 GEOMETRY
in the Geometry Database: FLACS COURSE DB window double click on
Geometry/SETUP_02
file -> save as -> 010200 browse to the desired working directory and save.
Stop loading the file by clicking File New
from Windows File Manager, delete cs010200.dat3, and cg010200.dat3 files
from Windows File Manager, copy cg010100.dat3 into cg010200.dat3
from Windows File Manager, copy cs010100.dat3 into cs010200.dat3
file -> open -> 010102 browse to the desired working directory and open
Porosities -> Calculate
File -> Exit
16
EXPLANATION
make active the SETUP_02 geometry in the sub-window Geometry; the selected geometry
is shown in the CASD@_v9.1 window
010102.caj and cg, cm, co, cs files are generated;
delete the grid and the scenario
use the same grid defined for SETUP_01 job
use the same scenario defined for SETUP_01 job
open 010102.caj, grid and scenario should be already properly defined
the porosities are calculated and stored in cp file
exit from CASD
General description
Jobs 010100 and 010200 are run. Results are compared with FLOWVIS.
TO BE TYPED
RUNNING THE JOBS
EXPLANATION
17
Jobs in the working directory are listed in the Run Manager window
the Batch Run window opens
the two jobs are solved (in sequence if nb#job=1, in parallel if nb#job=2)
monitor the runs looking at the log file (text and graph versions) in the Run Manager
)
18
19
20