forked from Rangamani-Lab/hassinger-rangamani-2017
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathendoInit.m
38 lines (30 loc) · 1.05 KB
/
endoInit.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%% Initialize a flat membrane patch for use with the axisymmetric Helfrich membrane model
%
% Julian Hassinger
% Biophysics Graduate Group
% George Oster Lab
% University of California, Berkeley
%
% Copyright 2016
%
% Last Edited: 1/28/2016
%
%%
% Inputs:
% alpha - dimensionless patch area
% mesh - meshing for the domain, runs from 0 to 1, i.e. 0:0.01:1
% lambda - membrane tension at the boundary, in units of pN/nm
% k0 - bending rigidity of bare membrane, in units of pN*nm
% R0 - nondimensionalization length
% Output:
% initSol - initialized solution array
function initSol = endoInit(alpha, mesh, lambda, k0, R0)
ds=0.0001; % Small deviation from x=0 (necessary to avoid division by 0)
t = alpha*mesh; % area mesh points
lam = lambda*R0^2/k0; % dimensionless membrane tension
initSol = [ds + sqrt(2*t) % x
zeros(1, length(t)) % y
zeros(1, length(t)) % psi
zeros(1, length(t)) % h
zeros(1, length(t)) % l
lam*ones(1, length(t))]; % lambda