14 lines
483 B
Matlab
Executable File
14 lines
483 B
Matlab
Executable File
% Program to create a structured mesh using the codes of Leo Sok
|
|
clear all; close all
|
|
|
|
nodes = load('LEO_files/nodes.txt');
|
|
ux = load('LEO_files/ux.txt') ;
|
|
uy = load('LEO_files/uy.txt') ;
|
|
uz = load('LEO_files/uz.txt') ;
|
|
u = sqrt(ux.^2 + uy.^2 + uz.^2);
|
|
resol = load('LEO_files/resol.txt') ;
|
|
dx = resol(1); dy = resol(2) ; dz = resol(3);
|
|
|
|
nodes_masked = maskFEM(nodes,u);
|
|
[N,tets,faces] = meshStructTess(nodes_masked,dx,dy,dz,0,0);
|
|
writemesh('/home/yeye/Desktop/leomesh',N,tets,faces) |