Dear Doctor Fang,
I am trying to generate a two domains mesh, where a cad valve model is located in the aorta. I am importing two off files in iso2mesh and i am trying to generate the volumetric mesh of their combination unsucessfully. Could you help me spot the issue? I am not sure that i am setting correctly the bounding box of the geometry and possibly this could be the issue. I hope to hear from you soon.
Above is the matlab scrypt and the files i use to help you reproduce the problem.
clc; clear all; clear figure; close all;
%Add the necessary paths..
%addpath('path to the mesh2abaqus file')
addpath('/home/mood/Softwares/MATLAB/toolkits/iso2mesh_1.7.9')
%Read surfaces / They must be in format .off
[nodesurf1,facesurf1]=readoff('aorta5.off');
[nodesurf2,facesurf2]=readoff('valve20.off');
%repair surfaces for intersections
[nodesurf1,facesurf1]=meshcheckrepair(nodesurf1,facesurf1);
[nodesurf2,facesurf2]=meshcheckrepair(nodesurf2,facesurf2);
[nodeJoin,faceJoin]=mergemesh(nodesurf1,facesurf1, nodesurf2,facesurf2);
figure;
plotmesh(nodesurf1,facesurf1);
figure;
plotmesh(nodesurf2,facesurf2);
%get seeds
s1=surfseeds(nodesurf1(:,1:3),facesurf1(:,1:3));
s2=surfseeds(nodesurf2(:,1:3),facesurf2(:,1:3));
%set seeds
seeds=[s1 20;s2 20];
%set bounding box??
p0=min(nodesurf1);
p1=max(nodesurf1);
%mesh whole geometry
[node,elem,face]=surf2mesh(nodeJoin,faceJoin,p0,p1,1,[],seeds,[],0);
figure;
plotmesh(node(:,1:3),elem(:,1:4));
Best regards,
Konstantinos.