MEDYAN.make_memb!

Tuple{MEDYAN.Context}

make_memb!(c::Context; vertex_positions, triangles)::MembId

Return a membrane identifier of the newly created membrane.

Keyword Arguments

  • vertex_positions: Each element is a vertex position (nm).

  • triangles::Vector{SVector{3, Int}}: Each element is the 3 vertex indexes of a triangle.

    Indexes are one based, and follow the right hand rule. Looking at the triangle from the outside in, they have counterclockwise winding.

  • vertex_states::Union{Vector{Int64}, Nothing} = nothing: Each element is a vertex state.

    By default vertices have a state of zero. If a vertex has a non zero state, it will not be removed during mesh adaption.

  • mech_params::MembraneMechParams = MembraneMechParams(): Mechanical parameters for membrane mechanics

  • area0::Union{Float64, Nothing} = nothing: Reference area (if nothing, computed from initial mesh) (nm^2)

  • volume0::Union{Float64, Nothing} = nothing: Reference volume (if nothing, computed from initial mesh) (nm^3)

  • offset_volume::Float64=0.0: Actual volume is cone volume with the origin plus the offset (nm^3)

  • type::Int=1: Membrane type index

  • chem_boundary::Bool = false: If true, the membrane acts as a boundary for 3D diffusing species.

  • chem_boundary_exterior::Bool = false: If true, the confined chemical domain is the exterior; otherwise the confined domain is the interior.