Index

ParametersDef

SegregatedVMSSolver.ParametersDef.compute_fluctuationMethod
compute_fluctuation(x,t, simcase::SimulationCase)

For the point x, at the time t it computes the velocity fluctuations in all the direction. Each time the time t is increased the Eddy are convected. The time informations are coded in the VirtualBox.

source

CreateProblem

SegregatedVMSSolver.CreateProblem.add_SEM_tag!Method

add the SEM tag to the nodes in front of the airfoil. c: chord of the airfoil, the points are on a circle at 1 chord of distance from the leading edge. set a_tol for selecting only one lines of points, it depends on how fine the mesh is.

source
SegregatedVMSSolver.CreateProblem.create_new_tag!Method
create_new_tag!(model::GridapDistributed.DistributedDiscreteModel, tagname::String, is_tag::Function)

It creates the centre tag at the tag_coordinate (Point); if mesh extremely fine the tolrances have to be smaller (unlikely)

source
SegregatedVMSSolver.CreateProblem.restart_ph_fieldMethod
restart_ph_field(simcase::VelocityBoundary,tree)

It provides a suitable function which gives for each point the specified pressure in restart_file. It is used as initial condition for restarting a simulation at a specific time step.

source
SegregatedVMSSolver.CreateProblem.restart_uh_fieldMethod
restart_uh_field(D::Int64,tree,restart_df::DataFrame)

It provides a suitable function which gives for each point the specified velocity in restart_file. It is used as initial condition for restarting a simulation at a specific time step.

source

Equations

SegregatedVMSSolver.Equations.continuity_stabilizationMethod
continuity_stabilization(uu, stab_coeff::ScalarStabilization,simcase::SimulationCase )

Stabilization parameters continuity equation Janssens, B. (2014). Numerical modeling and experimental investigation of fine particle coagulation and dispersion in dilute flows.

source
SegregatedVMSSolver.Equations.continuity_stabilizationMethod
continuity_stabilization(uu, stab_coeff::TensorStabilization,simcase::SimulationCase )

Stabilization parameter continuity Bazilevs, Y., Calo, V. M., Cottrell, J. A., Hughes, T. J. R., Reali, A., & Scovazzi, G. (2007). Variational multiscale residual-based turbulence modeling for large eddy simulation of incompressible flows. Computer Methods in Applied Mechanics and Engineering, 197(1–4), 173–201. https://doi.org/10.1016/j.cma.2007.07.016

source
SegregatedVMSSolver.Equations.momentum_stabilizationMethod
momentum_stabilization(uu, stab_coeff::ScalarStabilization,simcase::SimulationCase )

Stabilization parameters momentum equation Janssens, B. (2014). Numerical modeling and experimental investigation of fine particle coagulation and dispersion in dilute flows.

source
SegregatedVMSSolver.Equations.momentum_stabilizationMethod
momentum_stabilization(uu, stab_coeff::TensorStabilization,simcase::SimulationCase )

Stabilization parameter momentum stabilization Bazilevs, Y., Calo, V. M., Cottrell, J. A., Hughes, T. J. R., Reali, A., & Scovazzi, G. (2007). Variational multiscale residual-based turbulence modeling for large eddy simulation of incompressible flows. Computer Methods in Applied Mechanics and Engineering, 197(1–4), 173–201. https://doi.org/10.1016/j.cma.2007.07.016

source

MatrixCreation

SolverOptions

VectorsOperations

ExportUtility

SegregatedVMSSolver.ExportUtility.compute_errorMethod
compute_error(params::Dict{Symbol,Any}, simcase::TaylorGreen{Periodic},  tn::Float64, fields::Tuple)

Compute L2 error norm for velocity and pressure for TGV2D case. https://doi.org/10.1016/j.enganabound.2020.12.018

source

SolveProblem

Interfaces

SyntheticEddyMethod.VirtualBoxMethod
VirtualBox(ylims::Tuple{Real,Real}, zlims::Tuple{Real,Real} ; σ=0.1)

Utility to create VirtualBox, specifing the ylims of the inlet, the zlims for the virtual plane, and the σ eddy dimension. Refer to the original documentation of the package SynteticEddyMethod for more info, and specifing more advanced settings

source

Utils

SegregatedVMSSolver.ReadAirfoilResults

SegregatedVMSSolver.ReadAirfoilResults.compute_scatter_interpMethod
compute_scatter_interp(res_path, velocity::Vector{Float64} ,zp::Float64; tagname="topairfoil", ylims=[-0.018,0.15], xlims=[0.5,1.0])

In res_path is reading the nodes file associated with the tagname. It computes the interpolation of the values in velocity on nodes of plane in zp. NearestNeighbor() algorithm is used.

source
SegregatedVMSSolver.ReadAirfoilResults.read_fluctuationsMethod
read_fluctuations(res_path::String, xpyp::Vector{Float64};tagname="topairfoil", offset=1,offend=-1)

It is reading the results in res_path, for all the points aligned in Z direction of coordinates xpyp. It provides the ZProbe which has the information of the actual nodes used. Vel_Mat is a dense matrix: Time x Points x Velocity Components (3) offset and offend can be used to skip intial and final files (avoiding OutOfMemory() error)

source

SegregatedVMSSolver.WallDistance

SegregatedVMSSolver.WallDistance.get_initial_conditionsMethod

getinitialconditions(meshfile::String, uin::Float64, Re::Real, walltag; chord::Float64=1.0, D::Int64=2, p::Int64=6)

It runs Picard iterations of the p-Poisson problem up to p=6 with relaxation factor of 0.5. It is require p>3 It creates the .vtu file with the boundary layer initialization and also the .csv file which can be used to start a simulation over an airfoil. It return a dataframe where for each nodes are provided the coordinates and the velocity vector components.

source