Add y3GooHGaVq_aneurysm5
Browse files- .gitattributes +6 -0
- cfd_data/y3GooHGaVq_aneurysm5/blood_data.pt +3 -0
- cfd_data/y3GooHGaVq_aneurysm5/branch_ranking.npy +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/flowsplit_ratio.txt +1 -0
- cfd_data/y3GooHGaVq_aneurysm5/forward_fusion_info.npz +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/geomagic_processed.obj +3 -0
- cfd_data/y3GooHGaVq_aneurysm5/ghd_forward_fusion_info.npz +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/ghd_fusion_params.json +11 -0
- cfd_data/y3GooHGaVq_aneurysm5/ghd_merged_reconstruction.obj +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/ghd_reconstructed.obj +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/ghd_smoothed_reconstruction.obj +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/ghd_surface.vtp +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/ghd_surface_regularized.vtp +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/inlet_centroids.csv +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/jnl_transient +31 -0
- cfd_data/y3GooHGaVq_aneurysm5/mesh.msh +3 -0
- cfd_data/y3GooHGaVq_aneurysm5/mesh.vtu +3 -0
- cfd_data/y3GooHGaVq_aneurysm5/parabolic_vinlet_udf_full.c +200 -0
- cfd_data/y3GooHGaVq_aneurysm5/regularization.json +186 -0
- cfd_data/y3GooHGaVq_aneurysm5/udf_waveform_5cycles.txt +0 -0
- cfd_data/y3GooHGaVq_aneurysm5/wall_data.pt +3 -0
- cfd_data/y3GooHGaVq_aneurysm5/wall_mesh_registration.pt +3 -0
.gitattributes
CHANGED
|
@@ -7542,3 +7542,9 @@ cfd_data/y3GooHGaVq_aneurysm3/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
|
| 7542 |
cfd_data/y3GooHGaVq_aneurysm3/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 7543 |
cfd_data/y3GooHGaVq_aneurysm3/wall_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7544 |
cfd_data/y3GooHGaVq_aneurysm3/wall_mesh_registration.pt filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7542 |
cfd_data/y3GooHGaVq_aneurysm3/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 7543 |
cfd_data/y3GooHGaVq_aneurysm3/wall_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7544 |
cfd_data/y3GooHGaVq_aneurysm3/wall_mesh_registration.pt filter=lfs diff=lfs merge=lfs -text
|
| 7545 |
+
cfd_data/y3GooHGaVq_aneurysm5/blood_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7546 |
+
cfd_data/y3GooHGaVq_aneurysm5/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 7547 |
+
cfd_data/y3GooHGaVq_aneurysm5/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 7548 |
+
cfd_data/y3GooHGaVq_aneurysm5/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 7549 |
+
cfd_data/y3GooHGaVq_aneurysm5/wall_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7550 |
+
cfd_data/y3GooHGaVq_aneurysm5/wall_mesh_registration.pt filter=lfs diff=lfs merge=lfs -text
|
cfd_data/y3GooHGaVq_aneurysm5/blood_data.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f4cd7c5c2d7bfcf4f9186fec0b2b7fcbb32f1ade05299e07762a3d74c7a4962
|
| 3 |
+
size 3188472290
|
cfd_data/y3GooHGaVq_aneurysm5/branch_ranking.npy
ADDED
|
Binary file (152 Bytes). View file
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/flowsplit_ratio.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
0.7096995008249106 0.2903004991750894
|
cfd_data/y3GooHGaVq_aneurysm5/forward_fusion_info.npz
ADDED
|
Binary file (4.95 kB). View file
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/geomagic_processed.obj
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10a0bd4109317ddbb6d2beb9869206648174bab3012b8e4ad207d88c6bd2df0e
|
| 3 |
+
size 10758897
|
cfd_data/y3GooHGaVq_aneurysm5/ghd_forward_fusion_info.npz
ADDED
|
Binary file (7.07 kB). View file
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/ghd_fusion_params.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"flaw_opening_min_size": 5,
|
| 3 |
+
"init_step": 1,
|
| 4 |
+
"max_cl_length": null,
|
| 5 |
+
"ring_downsample_ratio": 1,
|
| 6 |
+
"smooth_n_rings": 5,
|
| 7 |
+
"smooth_n_iter": 10,
|
| 8 |
+
"extrude_outlets": true,
|
| 9 |
+
"extrude_inlet": true,
|
| 10 |
+
"min_torsion": true
|
| 11 |
+
}
|
cfd_data/y3GooHGaVq_aneurysm5/ghd_merged_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/ghd_reconstructed.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/ghd_smoothed_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/ghd_surface.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/ghd_surface_regularized.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/inlet_centroids.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/jnl_transient
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/file/read-case mesh.msh
|
| 2 |
+
/mesh/scale 0.001 0.001 0.001
|
| 3 |
+
/define/models/unsteady-2nd-order? yes
|
| 4 |
+
/define/models/viscous/laminar yes
|
| 5 |
+
/define/materials/change-create air blood yes constant 1050 no no yes carreau shear-rate-dependent 3.313 0.3568 0.056 0.00345 no no no yes
|
| 6 |
+
/define/boundary-conditions/zone-type 4 velocity-inlet
|
| 7 |
+
/define/boundary-conditions/zone-type 5 outflow
|
| 8 |
+
/define/boundary-conditions/zone-type 6 outflow
|
| 9 |
+
(define in-file (open-input-file "flowsplit_ratio.txt"))
|
| 10 |
+
(define out1 (read in-file))
|
| 11 |
+
(define out2 (read in-file))
|
| 12 |
+
(close-input-port in-file)
|
| 13 |
+
|
| 14 |
+
(define cmd1 (string-append "/define/boundary-conditions/outflow 5 " (number->string out1)))
|
| 15 |
+
(define cmd2 (string-append "/define/boundary-conditions/outflow 6 " (number->string out2)))
|
| 16 |
+
|
| 17 |
+
(ti-menu-load-string cmd1)
|
| 18 |
+
(ti-menu-load-string cmd2)
|
| 19 |
+
/define/user-defined/compiled-functions compile libudf yes parabolic_vinlet_udf_full.c "" ""
|
| 20 |
+
/define/user-defined/compiled-functions load libudf
|
| 21 |
+
/define/boundary-conditions/set/velocity-inlet surface4 () vmag yes yes udf inlet_x_velocity_transient::libudf quit
|
| 22 |
+
/solve/set/p-v-coupling 24
|
| 23 |
+
/solve/set/p-v-controls 2000000 0.5 0.5
|
| 24 |
+
/solve/monitors/residual/convergence-criteria 0.0001 0.0001 0.0001 0.0001
|
| 25 |
+
/solve/initialize/hyb-initialization
|
| 26 |
+
/file/transient-export/ensight-gold-transient ensight_files () * () absolute-pressure dynamic-pressure x-velocity y-velocity z-velocity wall-shear x-wall-shear y-wall-shear z-wall-shear dx-velocity-dx dy-velocity-dy dz-velocity-dz dx-velocity-dy dy-velocity-dx dx-velocity-dz dz-velocity-dx dy-velocity-dz dz-velocity-dy dp-dx dp-dy dp-dz dp-dt viscosity-lam x-coordinate y-coordinate z-coordinate quit no yes export-1 time-step 10 yes
|
| 27 |
+
/file/autosave/data-frequency 1600
|
| 28 |
+
/solve/set/time-step 0.001
|
| 29 |
+
/solve/dual-time-iterate 1600 100
|
| 30 |
+
exit
|
| 31 |
+
yes
|
cfd_data/y3GooHGaVq_aneurysm5/mesh.msh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:933d42ac6d5afe3862501e07751c9f95263a2c82806f3dac940f56a0f6d9298a
|
| 3 |
+
size 237908887
|
cfd_data/y3GooHGaVq_aneurysm5/mesh.vtu
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c50514f5b48ab134cecfd5626ba45b71fcd1833cb7f42860931f48efc8f4099b
|
| 3 |
+
size 52238330
|
cfd_data/y3GooHGaVq_aneurysm5/parabolic_vinlet_udf_full.c
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
vprofile_transient_parabolic.c
|
| 3 |
+
UDF for specifying steady-state velocity profile boundary condition
|
| 4 |
+
|
| 5 |
+
AUTHOR Wenhao Ding
|
| 6 |
+
DATE 22.03.2024
|
| 7 |
+
|
| 8 |
+
Instruction:
|
| 9 |
+
define VINREF, the maximum velocity at the center
|
| 10 |
+
define FIXED_TIME_STEP and make sure MAX_PCD_SIZE is larger than int(total_time/FIXED_TIME_STEP)
|
| 11 |
+
define filename (txt for the waveform, this txt file must be in the same directory as this script)
|
| 12 |
+
*/
|
| 13 |
+
|
| 14 |
+
#include "udf.h"
|
| 15 |
+
#include <math.h>
|
| 16 |
+
#include <stdio.h>
|
| 17 |
+
|
| 18 |
+
#define PI 3.14159265358979323846
|
| 19 |
+
#define VINREF 1.3158 /* ref inlet v */
|
| 20 |
+
#define VIN 0 /* ref inlet v */
|
| 21 |
+
#define MAX_PCD_SIZE 400001 /* Least PCD number the waveform file has cannot exceed point number in txt 574578 41160*/
|
| 22 |
+
#define MAX_LOG_SIZE 600
|
| 23 |
+
#define FIXED_TIME_STEP 0.00001 /* Fixed time step during transient simulation*/
|
| 24 |
+
#define MAX_POINTS 6000 /* Maximum point number on the inlet*/
|
| 25 |
+
#define ND_ND 3
|
| 26 |
+
/* static double* Q_array[MAX_PCD_SIZE]; */
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
typedef struct {
|
| 30 |
+
double x;
|
| 31 |
+
double y;
|
| 32 |
+
double z;
|
| 33 |
+
} Vector3D;
|
| 34 |
+
|
| 35 |
+
double dot_product(Vector3D v1, Vector3D v2) {
|
| 36 |
+
return v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
Vector3D cross_product(Vector3D v1, Vector3D v2) {
|
| 40 |
+
Vector3D cross_v;
|
| 41 |
+
|
| 42 |
+
cross_v.x = v1.y * v2.z - v1.z * v2.y;
|
| 43 |
+
cross_v.y = v1.z * v2.x - v1.x * v2.z;
|
| 44 |
+
cross_v.z = v1.x * v2.y - v1.y * v2.x;
|
| 45 |
+
|
| 46 |
+
return cross_v;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
double get_norm(Vector3D result) {
|
| 50 |
+
return sqrt(pow(result.x, 2) + pow(result.y, 2) + pow(result.z, 2));
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
double getDegAngle(Vector3D v1, Vector3D v2) {
|
| 54 |
+
Vector3D v_cross = cross_product(v1, v2);
|
| 55 |
+
double radian_angle = atan2(get_norm(v_cross), dot_product(v1, v2));
|
| 56 |
+
if (v_cross.z < 0) {
|
| 57 |
+
radian_angle = 2 * PI - radian_angle;
|
| 58 |
+
}
|
| 59 |
+
return radian_angle;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
DEFINE_PROFILE(inlet_x_velocity_transient, thread, position)
|
| 65 |
+
{
|
| 66 |
+
/*Domain* d;*/
|
| 67 |
+
/*d = Get_Domain(1);*/
|
| 68 |
+
/*Thread* tr = Lookup_Thread(d, 5);*/
|
| 69 |
+
real x[ND_ND]; /* ND_ND=3 for 3D */
|
| 70 |
+
real curr_x, curr_y, curr_z;
|
| 71 |
+
face_t f;
|
| 72 |
+
/* real current_time; */
|
| 73 |
+
FILE* rfile; /* declare a FILE pointer */
|
| 74 |
+
rfile = fopen("udf_waveform_5cycles.txt", "r+");
|
| 75 |
+
double Q_array[MAX_PCD_SIZE];
|
| 76 |
+
int i = 0;
|
| 77 |
+
for (i = 0; i < MAX_PCD_SIZE; i++) {
|
| 78 |
+
fscanf(rfile, "%lf", &Q_array[i]); /* that supposes one value per line */
|
| 79 |
+
}fclose(rfile);
|
| 80 |
+
/* load from csv file */
|
| 81 |
+
double centroids[MAX_POINTS][ND_ND];
|
| 82 |
+
int num_points_inlet = 0;
|
| 83 |
+
FILE* file;
|
| 84 |
+
char line[256];
|
| 85 |
+
file = fopen("inlet_centroids.csv", "r");
|
| 86 |
+
if (file == NULL)
|
| 87 |
+
{
|
| 88 |
+
Message("Error: Cannot open file %s\n", "inlet_centroids.csv");
|
| 89 |
+
return;
|
| 90 |
+
}
|
| 91 |
+
fgets(line, sizeof(line), file);
|
| 92 |
+
num_points_inlet = 0;
|
| 93 |
+
while (fgets(line, sizeof(line), file) && num_points_inlet < MAX_POINTS)
|
| 94 |
+
{
|
| 95 |
+
sscanf(line, "%lf,%lf,%lf", ¢roids[num_points_inlet][0], ¢roids[num_points_inlet][1], ¢roids[num_points_inlet][2]);
|
| 96 |
+
num_points_inlet++;
|
| 97 |
+
}
|
| 98 |
+
fclose(file);
|
| 99 |
+
/* record average coordinates on the inlet (center) */
|
| 100 |
+
double center_x = 0.0, center_y = 0.0, center_z = 0.0;
|
| 101 |
+
for (i = 0; i < num_points_inlet; i++)
|
| 102 |
+
{
|
| 103 |
+
center_x += centroids[i][0];
|
| 104 |
+
center_y += centroids[i][1];
|
| 105 |
+
center_z += centroids[i][2];
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
if (num_points_inlet > 0)
|
| 109 |
+
{
|
| 110 |
+
center_x /= num_points_inlet;
|
| 111 |
+
center_y /= num_points_inlet;
|
| 112 |
+
center_z /= num_points_inlet;
|
| 113 |
+
}
|
| 114 |
+
/*Message("Average centroid coordinates: x=%lf, y=%lf, z=%lf\n", center_x, center_y, center_z);*/
|
| 115 |
+
/* get 12 clock tick */
|
| 116 |
+
double tick_x = 0.0, tick_y = 0.0, tick_z = 0.0;
|
| 117 |
+
double tick_radius = 0.0;
|
| 118 |
+
double tick_radius_record = 0.0;
|
| 119 |
+
for (i = 0; i < num_points_inlet; i++)
|
| 120 |
+
{
|
| 121 |
+
tick_radius = sqrt(pow((centroids[i][0] - center_x), 2) + pow((centroids[i][1] - center_y), 2) + pow((centroids[i][2] - center_z), 2));
|
| 122 |
+
if (tick_radius > tick_radius_record) {
|
| 123 |
+
tick_x = x[0];
|
| 124 |
+
tick_y = x[1];
|
| 125 |
+
tick_z = x[2];
|
| 126 |
+
}
|
| 127 |
+
tick_radius_record = tick_radius;
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/* start spinning and record maximum radius for every sector */
|
| 131 |
+
int num_sector = 30;
|
| 132 |
+
double angle = 0.0;
|
| 133 |
+
int id_sector = 0;
|
| 134 |
+
double current_radius = 0.0;
|
| 135 |
+
/* tick & tock vector for cross and dot production */
|
| 136 |
+
Vector3D v_tick;
|
| 137 |
+
v_tick.x = tick_x - center_x;
|
| 138 |
+
v_tick.y = tick_y - center_y;
|
| 139 |
+
v_tick.z = tick_z - center_z;
|
| 140 |
+
Vector3D v_tock;
|
| 141 |
+
double radius_list[num_sector];
|
| 142 |
+
for (i = 0; i < num_sector; ++i) {
|
| 143 |
+
radius_list[i] = 0.0;
|
| 144 |
+
}
|
| 145 |
+
/* loop and fill radius_list */
|
| 146 |
+
for (i = 0; i < num_points_inlet; i++)
|
| 147 |
+
{
|
| 148 |
+
v_tock.x = centroids[i][0] - center_x;
|
| 149 |
+
v_tock.y = centroids[i][1] - center_y;
|
| 150 |
+
v_tock.z = centroids[i][2] - center_z;
|
| 151 |
+
angle = getDegAngle(v_tick, v_tock);
|
| 152 |
+
id_sector = floor((angle + PI) / (2 * PI / num_sector));
|
| 153 |
+
if (id_sector < 0) {
|
| 154 |
+
id_sector = 0;
|
| 155 |
+
}
|
| 156 |
+
if (id_sector >= num_sector) {
|
| 157 |
+
id_sector = num_sector - 1;
|
| 158 |
+
}
|
| 159 |
+
current_radius = sqrt(pow(v_tock.x, 2) + pow(v_tock.y, 2) + pow(v_tock.z, 2));
|
| 160 |
+
if (current_radius > radius_list[id_sector]) {
|
| 161 |
+
radius_list[id_sector] = current_radius;
|
| 162 |
+
}
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
/* clean radius list and check (sometimes there are no nodes in the sector) */
|
| 166 |
+
for (i = 0; i < num_sector; ++i) {
|
| 167 |
+
if (radius_list[i] == 0.0) {
|
| 168 |
+
radius_list[i] = tick_radius_record;
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
/* assign parabolic profile */
|
| 173 |
+
begin_f_loop(f, thread)
|
| 174 |
+
{
|
| 175 |
+
F_CENTROID(x, f, thread);
|
| 176 |
+
/* current_time = CURRENT_TIME */
|
| 177 |
+
int current_time_id = (int)floor(CURRENT_TIME / FIXED_TIME_STEP);
|
| 178 |
+
double current_Q_ratio = Q_array[current_time_id];
|
| 179 |
+
curr_x = x[0]; /* x[0] is x coordinate */
|
| 180 |
+
curr_y = x[1]; /* x[1] is y coordinate */
|
| 181 |
+
curr_z = x[2]; /* x[2] is z coordinate */
|
| 182 |
+
|
| 183 |
+
v_tock.x = x[0] - center_x;
|
| 184 |
+
v_tock.y = x[1] - center_y;
|
| 185 |
+
v_tock.z = x[2] - center_z;
|
| 186 |
+
angle = getDegAngle(v_tick, v_tock);
|
| 187 |
+
id_sector = floor((angle + PI) / (2 * PI / num_sector));
|
| 188 |
+
if (id_sector < 0) {
|
| 189 |
+
id_sector = 0;
|
| 190 |
+
}
|
| 191 |
+
if (id_sector >= num_sector) {
|
| 192 |
+
id_sector = num_sector - 1;
|
| 193 |
+
}
|
| 194 |
+
current_radius = radius_list[id_sector];
|
| 195 |
+
|
| 196 |
+
/* write inlet velocity profile - need to centre the x,y,z coords and divide by Rref^2 */
|
| 197 |
+
F_PROFILE(f, thread, position) = current_Q_ratio * VINREF * (1 + VIN) * (1 - (pow((curr_x - center_x), 2) + pow((curr_y - center_y), 2) + pow((curr_z - center_z), 2)) / (current_radius * current_radius));
|
| 198 |
+
}
|
| 199 |
+
end_f_loop(f, thread)
|
| 200 |
+
}
|
cfd_data/y3GooHGaVq_aneurysm5/regularization.json
ADDED
|
@@ -0,0 +1,186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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/ImperialNHS_fix/y3GooHGaVq_aneurysm5/geomagic_processed.obj",
|
| 3 |
+
"tolerance": 0.25,
|
| 4 |
+
"mode": "millimetre_fallback",
|
| 5 |
+
"dome_sac_mm": 4.0325988100403976,
|
| 6 |
+
"stopping": null,
|
| 7 |
+
"snap_levels": [
|
| 8 |
+
-1.0,
|
| 9 |
+
-0.5,
|
| 10 |
+
-0.25,
|
| 11 |
+
0.0,
|
| 12 |
+
0.25
|
| 13 |
+
],
|
| 14 |
+
"assessment": {
|
| 15 |
+
"needs_regularization": true,
|
| 16 |
+
"worst_target_excess_sd": 0.3432259279953684,
|
| 17 |
+
"tolerance_sd": 0.25,
|
| 18 |
+
"signed_excess_sd": {
|
| 19 |
+
"0.3": 0.3432259279953684,
|
| 20 |
+
"0.5": -0.23107713405016206,
|
| 21 |
+
"0.8": -0.2546982311724157,
|
| 22 |
+
"1.0": -0.28696828189546014,
|
| 23 |
+
"1.2": -0.31140381968648656,
|
| 24 |
+
"1.6": -0.35896927216866753
|
| 25 |
+
},
|
| 26 |
+
"verdict": "rougher_than_reference",
|
| 27 |
+
"guard_scale": 1.6,
|
| 28 |
+
"guard_below_band": 0.06013855331196943,
|
| 29 |
+
"target_scales": [
|
| 30 |
+
0.3,
|
| 31 |
+
0.5,
|
| 32 |
+
0.8,
|
| 33 |
+
1.0,
|
| 34 |
+
1.2
|
| 35 |
+
],
|
| 36 |
+
"measured_at_edge": 0.13194732076851365,
|
| 37 |
+
"edge_after_measurement_remesh": 0.10868847397093657,
|
| 38 |
+
"remesher": "auto",
|
| 39 |
+
"n_seeds": 4000,
|
| 40 |
+
"elapsed_s": 87.4
|
| 41 |
+
},
|
| 42 |
+
"dome_assessment": {
|
| 43 |
+
"needs_regularization": false,
|
| 44 |
+
"worst_target_excess_sd": -1.1449662765812925,
|
| 45 |
+
"tolerance_sd": -1.0,
|
| 46 |
+
"signed_excess_sd": {
|
| 47 |
+
"0.47": -1.3038941673260733,
|
| 48 |
+
"0.58": -1.2616503767920448,
|
| 49 |
+
"0.72": -1.208139865210611,
|
| 50 |
+
"0.9": -1.1691857429331185,
|
| 51 |
+
"1.1": -1.1449662765812925,
|
| 52 |
+
"1.35": -1.150137762656339,
|
| 53 |
+
"1.65": -1.1948872026267339
|
| 54 |
+
},
|
| 55 |
+
"verdict": "within_reference",
|
| 56 |
+
"guard_scale": null,
|
| 57 |
+
"guard_below_band": null,
|
| 58 |
+
"target_scales": [
|
| 59 |
+
0.47,
|
| 60 |
+
0.58,
|
| 61 |
+
0.72,
|
| 62 |
+
0.9,
|
| 63 |
+
1.1,
|
| 64 |
+
1.35,
|
| 65 |
+
1.65
|
| 66 |
+
],
|
| 67 |
+
"measured_at_edge": 0.13602009439404106,
|
| 68 |
+
"edge_after_measurement_remesh": 0.11243658271537936,
|
| 69 |
+
"remesher": "auto",
|
| 70 |
+
"n_seeds": 4000,
|
| 71 |
+
"elapsed_s": 183.38,
|
| 72 |
+
"sac_span_mm": 4.0325988100403976,
|
| 73 |
+
"alpha": 1.525071124032393,
|
| 74 |
+
"stopping": "relaxed",
|
| 75 |
+
"reference_sac_mm": 6.15,
|
| 76 |
+
"target_scales_used": [
|
| 77 |
+
0.47,
|
| 78 |
+
0.58,
|
| 79 |
+
0.72,
|
| 80 |
+
0.9,
|
| 81 |
+
1.1,
|
| 82 |
+
1.35,
|
| 83 |
+
1.65
|
| 84 |
+
],
|
| 85 |
+
"target_scales_dropped": {
|
| 86 |
+
"0.3": "0.197 mm real: below the 0.30 mm resolution floor",
|
| 87 |
+
"0.38": "0.249 mm real: below the 0.30 mm resolution floor"
|
| 88 |
+
},
|
| 89 |
+
"scales_in_real_mm": {
|
| 90 |
+
"0.47": 0.3081823480843881,
|
| 91 |
+
"0.58": 0.38031013167860656,
|
| 92 |
+
"0.72": 0.4721091289803392,
|
| 93 |
+
"0.9": 0.590136411225424,
|
| 94 |
+
"1.1": 0.721277835942185,
|
| 95 |
+
"1.35": 0.8852046168381361,
|
| 96 |
+
"1.65": 1.0819167539132772
|
| 97 |
+
}
|
| 98 |
+
},
|
| 99 |
+
"forward": {
|
| 100 |
+
"status": "converged",
|
| 101 |
+
"converged": true,
|
| 102 |
+
"guard_scale_below_reference_at_input": false,
|
| 103 |
+
"smoother": "mcf",
|
| 104 |
+
"remesher": "auto",
|
| 105 |
+
"sigma_step_mm": 0.08,
|
| 106 |
+
"tolerance_sd": 0.25,
|
| 107 |
+
"time_budget_s": null,
|
| 108 |
+
"overshoot_limit_sd": -1.0,
|
| 109 |
+
"guard_tolerance_sd": 1.0,
|
| 110 |
+
"target_scales": [
|
| 111 |
+
0.3,
|
| 112 |
+
0.5,
|
| 113 |
+
0.8,
|
| 114 |
+
1.0,
|
| 115 |
+
1.2
|
| 116 |
+
],
|
| 117 |
+
"guard_scale": 1.6,
|
| 118 |
+
"rounds": 1,
|
| 119 |
+
"total_sigma_mm": 0.08,
|
| 120 |
+
"target_edge": 0.13194732076851365,
|
| 121 |
+
"export_edge": null,
|
| 122 |
+
"metrics_measured_at_edge": 0.13194732076851365,
|
| 123 |
+
"n_vertices_in": 52785,
|
| 124 |
+
"n_vertices_out": 37319,
|
| 125 |
+
"n_seeds_used": 4000,
|
| 126 |
+
"elapsed_s": 95.46,
|
| 127 |
+
"edge_out": 0.10864955165648528,
|
| 128 |
+
"quality_out": 0.9834760169248873,
|
| 129 |
+
"smoothing_displacement_mm": 0.010738686096627027,
|
| 130 |
+
"surface_deviation_vs_original_max_mm": 0.010698137319119644,
|
| 131 |
+
"surface_deviation_vs_original_mean_mm": 0.0008592410641155702,
|
| 132 |
+
"patch_truncation_fraction": {
|
| 133 |
+
"0.3": 0.0,
|
| 134 |
+
"0.5": 0.0,
|
| 135 |
+
"0.8": 0.0,
|
| 136 |
+
"1.0": 0.0,
|
| 137 |
+
"1.2": 0.0,
|
| 138 |
+
"1.6": 0.0
|
| 139 |
+
},
|
| 140 |
+
"signed_excess_before": {
|
| 141 |
+
"0.3": 0.3432259279953684,
|
| 142 |
+
"0.5": -0.23107713405016206,
|
| 143 |
+
"0.8": -0.2546982311724157,
|
| 144 |
+
"1.0": -0.28696828189546014,
|
| 145 |
+
"1.2": -0.31140381968648656,
|
| 146 |
+
"1.6": -0.35896927216866753
|
| 147 |
+
},
|
| 148 |
+
"signed_excess_after": {
|
| 149 |
+
"0.3": -0.6970286704136189,
|
| 150 |
+
"0.5": -0.6425557717274938,
|
| 151 |
+
"0.8": -0.3605705907300831,
|
| 152 |
+
"1.0": -0.33858928436078195,
|
| 153 |
+
"1.2": -0.3450803825338985,
|
| 154 |
+
"1.6": -0.37204820797809224
|
| 155 |
+
},
|
| 156 |
+
"below_band_after": {
|
| 157 |
+
"0.3": 0.0,
|
| 158 |
+
"0.5": 0.0,
|
| 159 |
+
"0.8": 0.0,
|
| 160 |
+
"1.0": 0.05556805208875527,
|
| 161 |
+
"1.2": 0.12486988486367263,
|
| 162 |
+
"1.6": 0.07037878813210963
|
| 163 |
+
},
|
| 164 |
+
"input_inspection": {
|
| 165 |
+
"n_vertices": 52785,
|
| 166 |
+
"n_faces": 105216,
|
| 167 |
+
"bbox_diagonal": 33.001718642461775,
|
| 168 |
+
"watertight": false,
|
| 169 |
+
"n_components": 1,
|
| 170 |
+
"n_degenerate_faces": 0,
|
| 171 |
+
"edge_mean": 0.09145169692769006,
|
| 172 |
+
"edge_cv": 0.14710288103192437,
|
| 173 |
+
"n_boundary_vertices": 356,
|
| 174 |
+
"warnings": []
|
| 175 |
+
},
|
| 176 |
+
"reference_cases": 315
|
| 177 |
+
},
|
| 178 |
+
"cap_shift_mm": [
|
| 179 |
+
0.048768418703886596,
|
| 180 |
+
0.024180127911542802,
|
| 181 |
+
0.081379893334783
|
| 182 |
+
],
|
| 183 |
+
"action": "regularized",
|
| 184 |
+
"surface_used": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/ImperialNHS_fix/y3GooHGaVq_aneurysm5/ghd_surface_regularized.vtp",
|
| 185 |
+
"reason": "roughness above reference (worst target excess +0.34 SD); regularizer status converged"
|
| 186 |
+
}
|
cfd_data/y3GooHGaVq_aneurysm5/udf_waveform_5cycles.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/y3GooHGaVq_aneurysm5/wall_data.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bedf534c99995c710fa146ddc5726c63daf5c5f8423a4fac3888269eabd0ddcf
|
| 3 |
+
size 44055246
|
cfd_data/y3GooHGaVq_aneurysm5/wall_mesh_registration.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ce8e2e589145f206f922c8a39b9c202393346277ad733edadb90c2cb33edd2c
|
| 3 |
+
size 3889961
|