Skip to content

Commit

Permalink
replace resolution by size in julia viz
Browse files Browse the repository at this point in the history
  • Loading branch information
tduretz committed Jun 13, 2024
1 parent d05944e commit 3a21e0e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions JuliaVisualisation/Main_Visualisation_FaultSmearing_MD7.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ function main()
"/Users/tduretz/REPO/MDOODZ7.0/MDLIB/_p10_e18_t3/",
"/Users/tduretz/REPO/MDOODZ7.0/MDLIB/_p10_e18_t3_nonconv/",
"/Users/tduretz/REPO/MDOODZ7.0/MDLIB/_p10_e18_t2_nonconv/",
"/Users/tduretz/REPO/MDOODZ7.0/MDLIB/_p10_e18_t1_nonconv/",
)
names = (
"T3: Fully converged",
"T3: 1 iteration",
"T2: 1 iteration",
"T1: 1 iteration",
)
n_files = length(path)

Expand Down Expand Up @@ -149,7 +151,7 @@ function main()
cm_yr = 100.0*3600.0*24.0*365.25

# Time loop
f = Figure(resolution = (Lx/Lz*resol*1.2, resol), fontsize=25)
f = Figure(size = (Lx/Lz*resol*1.2, resol), fontsize=25)

for istep=file_start:file_step:file_end

Expand All @@ -161,7 +163,7 @@ function main()

#####################################
empty!(f)
f = Figure(resolution = (Lx/Lz*resol*1.2, resol), fontsize=25)
f = Figure(size = (Lx/Lz*resol*1.2, resol), fontsize=25)

if field==:EffectiveFrictionTime
for i_file=1:n_files
Expand Down
11 changes: 6 additions & 5 deletions JuliaVisualisation/Main_Visualisation_Makie_MD7.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function main()
path ="/Users/tduretz/REPO/MDOODZ7.0/MDLIB/TEST_ROMAN_ANI3_00_MR/"
path ="/Users/tduretz/REPO/MDOODZ7.0/MDLIB/_p10_e18_t3/"
path ="/Users/tduretz/REPO/MDOODZ7.0/MDLIB/_p10_e18_t1_nonconv/"
path ="/Users/tduretz/REPO/MDOODZ7.0/MDLIB/"

# path ="/Users/tduretz/Downloads/"
# path ="/Users/tduretz/REPO/MDOODZ7.0/MDLIB/DoubleSubduction_OMP16/"
Expand All @@ -57,9 +58,9 @@ function main()
# path ="/Users/tduretz/REPO/MDOODZ7.0/RUNS/1_NR09/"

# File numbers
file_start = 000
file_start = 130
file_step = 100
file_end = 2000
file_end = 130

# Select field to visualise
field = :Phases
Expand Down Expand Up @@ -89,7 +90,7 @@ function main()
framerate = 3
PlotOnTop = (
ph_contours = false, # add phase contours
T_contours = false, # add temperature contours
T_contours = true, # add temperature contours
fabric = false, # add fabric quiver (normal to director)
topo = false,
σ1_axis = false,
Expand All @@ -116,7 +117,7 @@ function main()
cm_yr = 100.0*3600.0*24.0*365.25

# Time loop
f = Figure(resolution = (Lx/Lz*resol*1.2, resol), fontsize=25)
f = Figure(size = (Lx/Lz*resol*1.2, resol), fontsize=25)

for istep=file_start:file_step:file_end

Expand Down Expand Up @@ -233,7 +234,7 @@ function main()

#####################################
empty!(f)
f = Figure(resolution = (Lx/Lz*resol*1.2, resol), fontsize=25)
f = Figure(size = (Lx/Lz*resol*1.2, resol), fontsize=25)

if field==:Phases
ax1 = Axis(f[1, 1], title = L"Phases at $t$ = %$(tMy) Ma", xlabel = L"$x$ [m]", ylabel = L"$y$ [m]")
Expand Down

0 comments on commit 3a21e0e

Please sign in to comment.