-
Notifications
You must be signed in to change notification settings - Fork 10
/
example_geo1.m
38 lines (30 loc) · 963 Bytes
/
example_geo1.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
addpath('..');
%% Create cobiveco object providing all parameters
% config.inPrefix = 'geo1/heart';
% config.outPrefix = 'result_geo1/';
% config.exportLevel = 3;
% config.verbose = true;
% config.mappingTol = 0.5;
% config.tol = 1e-8;
% config.maxit = 3000;
% config.truncSeptSur = [20 10];
% config.abExtrapSmooth = 0.25;
% config.mmgSizingParam = [0.1 0.9 1.1];
% c = cobiveco(config);
%% Create cobiveco object providing only subset of parameters
c = cobiveco(struct('inPrefix','geo1/heart', 'outPrefix','result_geo1/', 'exportLevel',3,'CobivecoX',0));
%% Compute coordinates and retrieve config and results
% prepareMesh0 decides on which Cobiveco version to be used
c.prepareMesh0;
if c.cfg.CobivecoX == true
c.computeAllCobivecoX;
else
c.computeAllCobiveco;
end
config = c.cfg;
result = c.result;
R = c.R;
%% Export config as JSON
fid = fopen(sprintf('%sconfig.json', config.outPrefix), 'w');
fwrite(fid, jsonencode(config));
fclose(fid);