lnp
Lipid nanoparticle (LNP) system construction.
funcpol2cart(theta, rho, z)paramthetaparamrhoparamzReturns
Nonefunccart2pol(cart_coords)paramcart_coordsReturns
Nonefuncscale_flat_to_spherical(coords, radius, zo_radius)paramcoordsparamradiusparamzo_radiusReturns
Nonefuncreplicate_box_3d(box, n) → mda.UniverseReplicate a box n times in each dimension (n×n×n total copies).
paramboxmda.UniverseThe unit cell box to replicate.
paramnintNumber of replications in each dimension.
Returns
MDAnalysis.UniverseA new universe with the replicated box.
funcreplicate_layer_square(box, nx, ny) → list[mda.AtomGroup]paramboxmda.UniverseparamnxintparamnyintReturns
list[MDAnalysis.MDAnalysis.AtomGroup]funcshell_from_monolayer(mono, R, z0=10.0) → mda.UniverseCreate a spherical shell from a monolayer by replicating the monolayer in x and y directions to cover a circle of radius R, then projecting the atoms onto a spherical surface.
parammonomda.UniverseThe input monolayer as an MDAnalysis Universe object.
paramRfloatThe radius of the spherical shell in Angstroms.
paramz0float= 10.0Returns
MDAnalysis.UniverseA new MDAnalysis Universe object containing the spherical shell.
