medyan-dev / medyan-public

Repo for issue tracking, documents and release. Learn more about MEDYAN at medyan.org.
https://medyan.org
Other
0 stars 0 forks source link

Initialize membrane from mesh file #12

Open nhz2 opened 1 year ago

nhz2 commented 1 year ago

Based on the manual I don't see a way of specifying a MEMBRANEFILE to initialize the membrane given a custom mesh.

drelatgithub commented 1 year ago

It can be specified using property mesh in init-membrane, with (mesh file <filename>).

File format for multiple meshes:

numvertices          <--  for mesh 1
v0x v0y v0z          <--  vertex coordinates in floating point
v1x v1y v1z
...
t00 t01 t02          <--  0-based vertex indices in a triangle
t10 t11 t12
...
                     <--  empty line
numvertices          <--  for mesh 2
v0x v0y v0z
...
t00 t01 t02
...

...                  <--  more meshes

File mode initialization is not included in the docs because this usage was intended to be private and does not work when recreating input files.