# flair project file
Version: 300
Mode: fluka
Title: Mas até ai tudo bem...
md5: fad14de5307b4bd351d165232638239d
Input:
TITLE
	Mas ate ai tudo bem...
*Geometria de um Copo Americano em uma mesa de bar clássica
DEFAULTS PRECISIO
#define cos_ang_xy 0
#define cos_ang_yz =cosd(45)
#define e_min_flat_0 0.00117
#define e_max_flat_0 0.00133
#define e_max_flat_0p5 0.00133
#define e_max_gauss 0.00133
*--------------------------------------------------------------------------------
*---------------------------------- DETECTORES ----------------------------------
*--------------------------------------------------------------------------------
*Detector de fótons na área do copo
USRBIN Fotons 10 PHOTON -21 10 4 5 0 -4 -5 20 16 20
*Detector de elétrons na área do copo
USRBIN Eletrons 10 ELECTRON -21 10 4 5 0 -4 -5 20 16 20
*Detector de região - Fótons
USRBIN DoseFoto 12 DOSE -22 GELO,,, COPO,,,, ' '
AUXSCORE , USRBIN PHOTON,, DoseFoto
*Detector de região - Elétrons
USRBIN DoseElec 12 DOSE -22 GELO,,, COPO,,,, ' '
AUXSCORE , USRBIN ELECTRON,, DoseElec
*Detector de região - Todas Partículas
USRBIN DoseAll 12 DOSE -22 GELO,,, COPO
AUXSCORE , USRBIN ALL-PART,, DoseAll
*---------------------------------------------------------------------------------
*------------------------------ PARAMETROS DO FEIXE ------------------------------
*---------------------------------------------------------------------------------
#if e_min_flat_0
*Define the beam characteristics
BEAM PHOTON -0.00117,, 350.0
	scale=10000
#endif
#if e_max_flat_0
*Define the beam characteristics
BEAM PHOTON 0.00133,, 350.0
	scale=10000
#endif
#if e_max_flat_0p5
*Define the beam characteristics
BEAM PHOTON 0.00133 0.0005 350.0
	scale=10000
#endif
#if e_max_gauss
*Define the beam characteristics
BEAM PHOTON 0.00133 -0.0005 350.0
	scale=10000
#endif
point marker1 0 0 0
point marker2 0 0 130.0
point marker3 51.0 0 80.0
point marker4 51.0 0 70.0
point marker5 0 0 120.0
point marker6 55.0 0 70.0
*Define the beam position
BEAMPOS , 7 10 -10 =cos_ang_xy =-cos_ang_yz
*Define the beam position
!BEAMPOS NEGATIVE 7 10 10 =cos_ang_xy =-cos_ang_yz
*Define the beam position
!BEAMPOS , 7 -10 -10 =cos_ang_xy =cos_ang_yz 2.5
*Define the beam position
!BEAMPOS NEGATIVE 7 -10 10 =cos_ang_xy =cos_ang_yz 2.5
*------------------------------- NOVOS MATERIAIS -----------------------------------------------------
*
*ICE - 0.92 g/cm3
MATERIAL ICE,,, 0.92
COMPOUND ICE 2.0 HYDROGEN 1.0 OXYGEN
*Ethyl alcohol C2_H5_O_H
MATERIAL ETHANOL,,, 0.7893
COMPOUND ETHANOL -0.131269 HYDROGEN -0.521438 CARBON -0.347294 OXYGEN
*Citric Acid - 1.66 g/cm3
MATERIAL ACIDCITR,,, 1.66
COMPOUND ACIDCITR 4.0 HYDROGEN 2.0 CARBON 2.0 OXYGEN
*Sucrose C12_H22_O11
MATERIAL SUCROSE,,, 1.5805
COMPOUND SUCROSE -0.064779 HYDROGEN -0.42107 CARBON -0.514151 OXYGEN
*Capirinha liquid compound
MATERIAL DRINK,,, 0.979
COMPOUND DRINK -60.0 -ETHANOL -80.0 -WATER -1.2 -ACIDCITR -15.0 -SUCROSE
*---------------------------------- GEOMETRIA -------------------------------------------------------
GEOBEGIN COMBNAME
*Black body
SPH blkbody 0.0 0.0 0.0 10000
*Void sphere
SPH void 0 0 0 1000
*Parte externa do copo
TRC CopoExt 0 0 0 9.3 0 0 2.45 3.35
*Parte interna do copo
TRC CopoInt 0.5 0 0 8.8 0 0 2.3 3.1
*Plano limite da água
YZP AguaPlan 8.0
*Cubo do gelo
RPP Gelo 5.75 8.25 -1.0 1.5 -0.2 2.3
*Tabua da mesa
RPP Mesa -2 0 -30 30 -30.0 30.0
*Perna da mesa
RCC Perna1 -1 28.0 -28 -70 -56 0 1.5
*Perna da mesa
RCC Perna2 -1 -28.0 -25 -70 56 0 1.5
*Perna da mesa
RCC Perna3 -1 28.0 28 -70 -56 0 1.5
*Perna da mesa
RCC Perna4 -1 -28.0 25 -70 56 0 1.5
*Suporte da perna da mesa
ZCC Suport1 -50 -11 1
*Suporte da perna da mesa
ZCC Suport2 -50 11 1
*Limite do suporte da perna da mesa para a perna 1
XYP SupLim1 -28.0
*Limite do suporte da perna da mesa para a perna 2
XYP SupLim2 -25.0
*Limite do suporte da perna da mesa para a perna 3
XYP SupLim3 28.0
*Limite do suporte da perna da mesa para a perna 4
XYP SupLim4 25.0
YZP plandet 7.0
END
*Black hole
REGION BLKBODY 5
	+blkbody -void
	alpha=100
*Ar ambiente
REGION AR 5
	+void -CopoExt -Mesa -Perna1 -Perna2 -Perna3 -Perna4 -Suport1 -Suport2
	| +CopoInt -AguaPlan -Gelo
	| +Suport1 +SupLim1 -Perna1
	| +Suport1 -SupLim3 -Perna3
	| +Suport2 +SupLim2 -Perna2
	| +Suport2 -SupLim4 -Perna4
*Copo Americano de 150ml
REGION COPO 5
	+CopoExt-CopoInt
*Liquido dentro do copo
REGION LIQUIDO 5
	+CopoInt +AguaPlan -Gelo
	alpha=0
*Tabua da mesa, quatro pernas e dois suportes
REGION MESA
	+Mesa
	| +Perna1
	| +Perna2
	| +Perna3
	| +Perna4
	| +Suport1 -SupLim1 +SupLim3
	| +Suport2 -SupLim2 +SupLim4
*Gelo dentro do copo
REGION GELO
	+Gelo
END
GEOEND
*..+....1....+....2....+....3....+....4....+....5....+....6....+....7..
ASSIGNMA , BLCKHOLE BLKBODY
ASSIGNMA , AIR AR
ASSIGNMA , CALCIUM COPO
ASSIGNMA , DRINK LIQUIDO
ASSIGNMA , ICE GELO
ASSIGNMA , MUSCLEST MESA
light light 90.0 12.0 -84.0 1 0 0 -130.0 -42.0 300 2 0 0 0 1
*Set the random number seed
RANDOMIZ , 1.0
*Set the number of primary histories to be simulated in the run
START , 100000
STOP
EndInput

Page: Plot
Calculator:
	|ang=(7.2/2)*deg
	|> ang = 0.062831853071796
	|sin(ang)
	|> ans19 = 0.062790519529313
plotengine: Gnuplot

# Run information
Run: <default>
	Status:   3
	queue:    *Default
End
Run: Caipirinha_01
	Rnd:      1
	Status:   3
	StartRun: 1675941941
	Parent:   <default>
	queue:    *Default
End
Run: Caipirinha_02
	Rnd:      2
	Status:   3
	StartRun: 1675941941
	Parent:   <default>
	queue:    *Default
End
Run: Caipirinha_03
	Rnd:      3
	Status:   3
	StartRun: 1675941941
	Parent:   <default>
	queue:    *Default
End
Material: PITWALL
	color: #c0c8ac
End
Material: POLYETHE
	color: #c0ffeb
End
Material: ACO
	color: #706881
End
Material: LEAD
	color: #1e1e2a
End
Material: Pyrex
	alpha: 20
	bxdf: Clear glass/Water
	color: #eeeeff
	shine: 0
	specular: 0.2
End
Material: ALUMINUM
	bxdf: Shiny metal rough 2
	color: #B4B3B9
End
Material: ICE
	alpha: 10
	bxdf: Clear glass/Water
	color: #cceeff
End
Material: WATER
	alpha: 10
	bxdf: Clear glass/Water
	color: #028CCA
End
Material: PLASCINT
	alpha: 5
	bxdf: Dispersive glass
	color: #9ECCFE
End
Material: CALCIUM
	alpha: 80
	bxdf: Clear glass/Water
	color: #eeeeff
End
Material: DRINK
	alpha: 50
	color: #ccded4
End
Geometry: Geometry
	Layer: Media
		Userdump: 1
		Userdump.ELECTRON: 1
		Userdump.PHOTON: 1
		Userdump._visible: 1
		Userdump.file: usrdump_01001_dump
		Userdump.n: 50
		Usrbin.file: Caipirinha_21.bnn
		Usrbin.norm: 1000
	End
	Layer: 3D
		3D: 1
		3D._visible: 1
		3D.ambient: 80
		3D.edgedetect: 1
		3D.skip1stblack: 1
		Options.grid: 0
		Options.ocube: -16
		Options.viewport: 0
		Palette._visible: 1
		Show: 0
		Usrbin._visible: 1
		Usrbin.alpha: 183
		Usrbin.input: 1
	End
	Layer: 3DPic
		3D: 1
		3D._visible: 1
		3D.ambient: 0
		3D.deflights: 0
		3D.edgedetect: 1
		3D.projection: 2
		3D.skip1stblack: 1
		Options.errors: 0
		Options.grid: 0
		Options.ocube: -16
		Options.viewport: 0
		Show.label: None
	End
	Layer: Det
		3D._visible: 1
		Options.errors: 0
		Options.viewport: 0
		Palette._visible: 1
		Palette.alphamin: 1
		Palette.cpd: 0
		Palette.max: 1.0
		Palette.min: 1e-06
		Palette.smooth: 1
		Usrbin: 1
		Usrbin._visible: 1
		Usrbin.alpha: 134
		Usrbin.file: Caipirinha_21.bnn
		Usrbin.input: 1
	End
	Layer: DetProcessado
		3D._visible: 1
		Options.errors: 0
		Palette: 1
		Palette._visible: 1
		Palette.alphamin: 1
		Palette.cpd: 0
		Palette.max: 0.1
		Palette.min: 0.001
		Palette.smooth: 1
		Usrbin: 1
		Usrbin._visible: 1
		Usrbin.alpha: 134
		Usrbin.file: Caipirinha_21.bnn
	End
	Layer: Imagem
		3D._visible: 1
		Image: 1
		Image._visible: 1
		Image.file: Capivara.png
		Image.marker: 3
		Image.marker.0: 169.33333333333334 657.3333333333334 0.0 0.0 0.0
		Image.marker.1: 530.6666666666666 656.0 0.0 0.0 120.0
		Image.marker.2: 380.0 376.0 55.0 0.0 70.0
		Options.ocube: 32
		Options.viewport: 0
		Palette.cpd: 0
		Palette.log: 0
		Palette.max: 2.0
		Palette.min: 0.5
		Show.label: None
	End
End

# Plots information
Plot: Green
	Type: Geometry
	basisu: 0.0379773 -0.449424 -0.892511
	basisv: 0.902851 0.398223 -0.162108
	extends: 3.13009 1.60699
	grid: 0
	layer: 3DPic
	origin: 20.3657 -28.3617 14.6606
End
Plot: Red
	Type: Geometry
	basisu: 0 0 1
	basisv: 1 0 0
	coord: Z-X
	extends: 92.2606 47.3668
	layer: Imagem
	origin: 18.2015 0.397957 29.3658
End
Plot: Blue
	Type: Geometry
	basisu: 0 0 1
	coord: Z-Y
	extends: 8.62303 4.42708
	layer: DetProcessado
	origin: 8.13462 -0.231227 -0.317825
End
Plot: Magenta
	Type: Geometry
	basisu: 0 1 0
	basisv: 1 0 0
	coord: Y-X
	extends: 14.9006 7.65
	grid: 0
	layer: DetProcessado
	origin: 5.22354 0.397957 -1.47305
End
Plot: Plot_For
	Type: USR-1D
	commands:
		|per = 10
		|amp = 5
		|desloc = log(100)**2
		|f(x) = amp * sin(pi*x/per) + (desloc + t) 
		|
		|# Configurações do Plot
		|set title "Plot com looping 'for'" font "Arial, 16"
		|set ylabel "f(x) = amp * sin(pi*x/per) + (desloc + t)" font "Arial, 12"
		|set grid
		|set key bottom
		|
		|plot for [t=1:10] f(x) title "variavel t = ".t
	grid: 0
End
Plot: Circulos_Retangulos
	Type: USR-1D
	commands:
		|# Círculos
		|set object circle at -2, 5 size 3 front
		|set object circle at graph 0.5,0.5  size 3 fc "black" fs pattern 2
		|set object circle at -7,-4 size 6 fc "#9900ABFF" fs pattern 3 border lc "coral" lw 6
		|
		|# Retângulos
		|set object rect from 7,8 to 10,10
		|set object rect from 4,2 to 0,5 fillcolor "#bb0000FF" fillstyle noborder
		|set object rect from 3,-4 to 7,3 fc "#bbFF00FF" fs pattern 5 border lc "green"
		|set object rect from -6,-7 to 0,-4 fc "#FF000000"
		|
		|# Configurações
		|set title "Retângulos e círculos" font "Arial, 16"
		|unset xtics
		|unset ytics
		|
		|plot 10*sin(pi*x/10) notitle
	grid: 0
End
Plot: Caixas_de_Texto
	Type: USR-1D
	commands:
		|set label "Texto 1" at 0,5
		|
		|# Fontes, Estilos e Âncora dos textos
		|set label "Texto 2" at -5,-1 left textcolor "red" font ',14'
		|set label "Texto 3" at -5,-3 center tc "red" font 'Symbol,14'
		|set label "Texto 4" at -5,-5 right tc "red" font 'Times,14'
		|
		|# Rotação
		|set label "Texto 5" at 0,-1 center rotate by 30
		|set label "Texto 6" at 0,-3 rotate by 180
		|
		|# Texto dentro de caixa
		|set style textbox opaque fillcolor "#bbff0000" border linecolor "blue"
		|set label "Texto 7" at 5, -1 center boxed front
		|set label "Texto 8" at 5, -5 center rotate by 90 boxed front
		|
		|# Configurações
		|set title "Algumas Caixas de Texto" font "Arial, 16" textcolor "red"
		|set xtics rotate by 45 right
		|set grid
		|
		|plot 10*sin(pi*x/10) notitle
	grid: 0
End
Plot: Caipirinha_21_1D_Fotons
	Type: USRBIN
	bxmax: 8
	bxmin: 7.
	bymax: 0.5
	bymin: -0.5
	cblabel: Fluência de fótons (fótons / cm²  por primária)
	cblog: 1
	cbtics: 1
	commands:
		|# Comando para deixar o valores na barra de cor no formato "10^L"
		|set format cb "10^{%L}"
		|
		|copo = 3.2
		|set arrow from -copo, graph 0 to -copo, graph 1 nohead linecolor "#00FF0000" dashtype 2
		|set arrow from +copo, graph 0 to +copo, graph 1 nohead linecolor "#00FF0000" dashtype 2
		|
		|set arrow from graph 0, first 0.03 to graph 1, first 0.03 nohead dashtype "." lc "purple" lw 3
	datafile: Caipirinha_21.bnn
	grid: 1
	hist: 1D Projection
	int: 0.33983088731474731
	lc.0: black
	max: 6.59314841E-02
	min: 5.93012082E-04
	title: Plot de fótons em X [7, 8] cm  e Y [-0.5, 0.5] cm
	titlesize: 16
	xlabel: Z (cm) 
	ylabel: Fluência de fótons (fótons / cm²  por primária)
End
Plot: Caipirinha_21_1D_Eletrons
	Type: USRBIN
	bxmax: 8
	bxmin: 7.
	bymax: 0.5
	bymin: -0.5
	cblabel: Fluência de fótons (eletrons / cm²  por primária)
	cblog: 1
	cbtics: 1
	commands:
		|# Comando para deixar o valores na barra de cor no formato "10^L"
		|set format cb "10^{%L}"
		|
		|copo = 3.2
		|set arrow from -copo, graph 0 to -copo, graph 1 nohead linecolor "#00FF0000" dashtype 2
		|set arrow from +copo, graph 0 to +copo, graph 1 nohead linecolor "#00FF0000" dashtype 2
		|
		|set arrow from graph 0, first 0.03 to graph 1, first 0.03 nohead dashtype "." lc "purple" lw 3
	datafile: Caipirinha_21.bnn
	det: 2
	grid: 1
	hist: 1D Projection
	int: 4.5613858979436390E-003
	lc.0: black
	max: 9.13271448E-04
	min: 1.37101715E-05
	proj: X
	title: Plot de Elétrons em X [7, 8] cm  e Y [-0.5, 0.5] cm
	titlesize: 16
	xlabel: Z (cm) 
	ylabel: Fluência de fótons (eletrons / cm²  por primária)
End
Plot: 1D_Fotons_Eletrons
	Type: USR-1D
	commands:
		|set format y "10^{%L}"
		|
		|# Linhas verticais
		|set arrow from -copo, graph 0 to -copo, graph 1 nohead linecolor "#00000000" dashtype 2
		|set arrow from +copo, graph 0 to +copo, graph 1 nohead linecolor "#00000000" dashtype 2
		|
		|# linha horizontal e label
		|set arrow from graph 0, first 0.03 to graph 1, first 0.03 nohead dashtype "." lc "red" lw 3
		|set style textbox opaque fillcolor "#bb000000" noborder
		|set label "Limite de Fluência" at graph 0.1, first 0.03 center textcolor "white" boxed front offset 0,-1
		|
		|# Zona vermelha e label
		|set object rect from -copo,graph 0 to copo,graph 1 fillcolor "#ccbb0000" fillstyle noborder
		|set label "Região dentro do copo" at graph 0.5,0.05 center textcolor "black" font "Arial, 14"
	file.0: Caipirinha_21_1D_Fotons.dat
	file.1: Caipirinha_21_1D_Eletrons.dat
	grid: 1
	lc.0: green
	lc.1: blue
	lw.0: 3
	lw.1: 3
	name.0: Fótons
	name.1: Elétrons
	ndetectors: 2
	title: Fótons e Elétrons em X [7, 8] cm  e Y [-0.5, 0.5] cm
	titlesize: 16
	xlabel: Z (cm) 
	xsize: 12
	y.0: 0
	y.1: 0
	ylabel: Fluência (partículas / cm²  por primária)
	ylog: 1
	ysize: 12
End
Plot: Caipirinha_21_plot_Fotons
	Type: USRBIN
	bxmax: 8
	bxmin: 7.
	cbcolors: 256
	cblabel: Fluência de fótons (fótons / cm²  por primária)
	cblog: 1
	cbsize: 12
	cbtics: 1
	commands:
		|# Comando para deixar o valores na barra de cor no formato "10^L"
		|set format cb "10^{%L}"
	datafile: Caipirinha_21.bnn
	grid: 1
	hist: 2D Projection
	int: 2.6222928233073617
	max: 0.155918792
	min: 3.72736104E-04
	proj: X
	title: Plot de fótons em X [7, 8] cm 
	titlesize: 16
	xlabel: Y (cm) 
	xsize: 12
	ylabel: Z (cm) 
	ysize: 12
End
Plot: Caipirinha_21_plot_Eletrons
	Type: USRBIN
	bxmax: 8
	bxmin: 7.
	cbcolors: 256
	cblabel: Fluência de elétrons (elétrons / cm²  por primária)
	cblog: 1
	cbsize: 12
	cbtics: 1
	commands:
		|# Comando para deixar o valores na barra de cor no formato "10^L"
		|set format cb "10^{%L}"
	datafile: Caipirinha_21.bnn
	det: 2
	grid: 1
	hist: 2D Projection
	int: 2.2517510717793950E-002
	max: 1.11623225E-03
	min: 1.34611184E-06
	proj: X
	title: Plot de elétrons em X [7, 8] cm 
	titlesize: 16
	xlabel: Y (cm) 
	xsize: 12
	ylabel: Z (cm) 
	ysize: 12
End
Plot: Soma_2D
	Type: USR-2D
	cbcpd: 0
	cblog: 1
	cbmax: 1
	cbtics: 1
	commands:
		|# Configuração copiadas do output dos plots originais, linha de plot abaixo
		|# Você pode manter todas as linhas, ou pode apagar as que você pode configurar acima
		|set terminal qt 0 enhanced solid title 'Caipirinha-0: Plot de elétrons em X [7, 8] cm '
		|set title 'Soma de fluência de fótons e elétrons em X [7, 8] cm ' font ',16'
		|set grid front
		|set xlabel 'Y (cm) ' font ',12'
		|set xtics 
		|set ylabel 'Z (cm) ' font ',12'
		|set ytics 
		|set cblabel 'Fluência de elétrons (elétrons / cm²  por primária)' font ',12'
		|set cbtics 
		|unset logscale x
		|unset logscale y
		|set logscale cb
		|set key default
		|set style line 1 lt -1 lw 1
		|set logscale cb
		|set colorbox vertical
		|set pm3d map explicit corners2color c1
		|set palette defined (1. 1.0 1.0 1.0,2. 0.8 0.8 0.8,3. 0.9 0.6 0.9,4. 1.0 0.4 1.0,5. 0.9 0.0 1.0,6. 0.7 0.0 1.0,7. 0.5 0.0 0.8,8. 0.0 0.0 0.8,9. 0.0 0.0 1.0,10. 0.0 0.6 1.0,11. 0.0 0.8 1.0,12. 0.0 0.7 0.5,13. 0.0 0.9 0.2,14. 0.5 1.0 0.0,15. 0.8 1.0 0.0,16. 1.0 1.0 0.0,17. 1.0 0.8 0.0,18. 1.0 0.5 0.0,19. 1.0 0.0 0.0,20. 0.8 0.0 0.0,21. 0.6 0.0 0.0,22. 0.4 0.0 0.0,23. 0.0 0.0 0.0)
		|set palette maxcolors 256
		|set format cb "10^{%L}"
		|
		|
		|
		|# ------------------- Plot somado de elétrons e fótons ------------------------------
		|# Para ver de fato a soma, aumentarei o valor do detector de elétrons
		|# fótons + 100*elétrons
		|norm_eletron = 100
		|splot '<paste Caipirinha_21_plot_Fotons.dat Caipirinha_21_plot_Eletrons.dat' us 1:2:($3 + norm_eletron*$7) notitle ,'Caipirinha_21_plot_Eletrons.geo.dat' ind 0 us 5:4:(0.) w l ls 1 notit
	det: 0
	grid: 1
End
Plot: Caipirinha_22_plot_Fotons
	Type: USRBIN
	cblog: 1
	cbtics: 1
	commands:
		|# Comando para deixar o valores do eixo y no formato "lx10^L"
		|set format y "%.2lx10^{%L}"
	datafile: Caipirinha_22.bnn
	grid: 1
	hist: 1D Projection
	proj: X
	title: Dose de fótons nas regiões da geometria
	titlesize: 16
	xlabel: Região
	ylabel: Dose (GeV/g por primária)
End
Plot: Caipirinha_22_plot_Eletrons
	Type: USRBIN
	cblog: 1
	cbtics: 1
	commands:
		|# Comando para deixar o valores do eixo y no formato "lx10^L"
		|set format y "%.2lx10^{%L}"
	datafile: Caipirinha_22.bnn
	det: 2
	grid: 1
	hist: 1D Projection
	proj: X
	title: Dose de elétrons nas regiões da geometria
	titlesize: 16
	xlabel: Região
	ylabel: Dose (GeV/g por primária)
End
Plot: Caipirinha_22_plot_Tudo
	Type: USRBIN
	cblog: 1
	cbtics: 1
	commands:
		|# Comando para deixar o valores do eixo y no formato "lx10^L"
		|set format y "%.2lx10^{%L}"
	datafile: Caipirinha_22.bnn
	det: 3
	grid: 1
	hist: 1D Projection
	proj: X
	title: Dose Total nas regiões da geometria
	titlesize: 16
	xlabel: Região
	ylabel: Dose (GeV/g por primária)
End
