MEDYAN.make_memb_rectangle!

Tuple{MEDYAN.Context}

make_memb_rectangle!(c::Context; width, height=width, center=SA[0.0,0.0,0.0])::MembId

Create a new rectangular membrane in the simulation context and return its membrane identifier.

The membrane is by default in the X-Y plane, and the outside of the membrane is on the +Z side.

The mesh is then scaled by width in the X direction, height in the Y direction, rotated by rotation, and translated to center.

Keyword Arguments

  • width::Float64: The length of the membrane in the X direction (nm)
  • height::Float64=width: The length of the membrane in the Y direction (nm)
  • center::SVector{3,Float64}=SA[0.0,0.0,0.0]: Center of the sphere (nm)
  • rotation=I: 3x3 matrix to rotate the sphere around its center
  • 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.