usingDataFrames,CSV,Mmap,CodecZlib,Plots,LazySets# Needed to import the data to dataframes
...
...
@@ -27,11 +24,16 @@ All the data can be found in the `data/sims/relaxation_different_shape_angle/` f
The relexation experiments generated those csv files. `measurements.csv` contains the length of the three phase contact line (**TPC**) and the differential surface area. On the other hand `final_hdvars.csv` contains an snapshot of the simulations state at the last time step."
# ╔═╡ 2aabe662-e771-11ea-37c9-0f1ca548971f
measurements=CSV.File(transcode(GzipDecompressor,Mmap.mmap("../data/sims/relaxation_different_shape_angle/measurements.csv.gz")))|>DataFrame# three phase contact line lengths and surface areas
begin
measurements=CSV.File(transcode(GzipDecompressor,Mmap.mmap("../data/sims/relaxation_different_shape_angle/measurements.csv.gz")))|>DataFrame# three phase contact line lengths and surface areas
HD_snaps=CSV.File(transcode(GzipDecompressor,Mmap.mmap("../data/sims/relaxation_different_shape_angle/final_hdvars.csv.gz")))|>DataFrame# Snapshot of the final state of the simulation
begin
HD_snaps=CSV.File(transcode(GzipDecompressor,Mmap.mmap("../data/sims/relaxation_different_shape_angle/final_hdvars.csv.gz")))|>DataFrame# Snapshot of the final state of the simulation
HD_snaps1=CSV.File(transcode(GzipDecompressor,Mmap.mmap("../data/sims/relaxation_different_shape_angle/final_hdvars_1.csv.gz")))|>DataFrame# Snapshot of the final state of the simulation
function macroscopicmoments!(mom::cumoments,dists::Distribution)
sum!(mom.height,dists.fout)
mom.velocity.x.=dists.fout[:,:,2].-dists.fout[:,:,4].+dists.fout[:,:,6].-dists.fout[:,:,7].-dists.fout[:,:,8].+dists.fout[:,:,9]# This is not as easy as thought
mom.velocity.x.=view(dists.fout,:,:,2).-view(dists.fout,:,:,4).+view(dists.fout,:,:,6).-view(dists.fout,:,:,7).-view(dists.fout,:,:,8).+view(dists.fout,:,:,9)# This is not as easy as thought
# println("You choose to run on a simulation of a $kind")
# # Some parameter defining at the start
# T = eltype(parameters.gravity)
# JuThinFilm.culattice{T}()
function runsimulationGPU(parameters::JuThinFilm.params,colparams::JuThinFilm.collisionparams,pressureparams::JuThinFilm.pressurestats;kind="Droplet",h₀=30,θ₀=1/3,nx=1,ny=1,ϵ=0.1)
# Some unuseful IO
println("You choose to run on a simulation of a $kind")
# Some parameter defining at the start
T=eltype(parameters.gravity)
lat=JuThinFilm.culattice{T}()
# center = (parameters.lx÷2, parameters.ly÷2)
# if kind == "Droplet"
# mom = singledroplet(T, parameters.lx, parameters.ly, h₀, θ₀, center, device=true)