Add rCHyvghmVr_aneurysm1
Browse files- .gitattributes +6 -0
- cfd_data/rCHyvghmVr_aneurysm1/blood_data.pt +3 -0
- cfd_data/rCHyvghmVr_aneurysm1/branch_ranking.npy +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/flowsplit_ratio.txt +1 -0
- cfd_data/rCHyvghmVr_aneurysm1/forward_fusion_info.npz +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/geomagic_processed.obj +3 -0
- cfd_data/rCHyvghmVr_aneurysm1/ghd_forward_fusion_info.npz +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/ghd_fusion_params.json +11 -0
- cfd_data/rCHyvghmVr_aneurysm1/ghd_merged_reconstruction.obj +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/ghd_reconstructed.obj +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/ghd_smoothed_reconstruction.obj +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/ghd_surface.vtp +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/ghd_surface_regularized.vtp +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/inlet_centroids.csv +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/jnl_transient +31 -0
- cfd_data/rCHyvghmVr_aneurysm1/mesh.msh +3 -0
- cfd_data/rCHyvghmVr_aneurysm1/mesh.vtu +3 -0
- cfd_data/rCHyvghmVr_aneurysm1/parabolic_vinlet_udf_full.c +200 -0
- cfd_data/rCHyvghmVr_aneurysm1/regularization.json +186 -0
- cfd_data/rCHyvghmVr_aneurysm1/udf_waveform_5cycles.txt +0 -0
- cfd_data/rCHyvghmVr_aneurysm1/wall_data.pt +3 -0
- cfd_data/rCHyvghmVr_aneurysm1/wall_mesh_registration.pt +3 -0
.gitattributes
CHANGED
|
@@ -7425,3 +7425,9 @@ cfd_data/r2EVkwBdXy_aneurysm1/wall_mesh_registration.pt filter=lfs diff=lfs merg
|
|
| 7425 |
cfd_data/rASk5uvMt2_aneurysm1/blood_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7426 |
cfd_data/rASk5uvMt2_aneurysm1/wall_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7427 |
cfd_data/rASk5uvMt2_aneurysm1/wall_mesh_registration.pt filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7425 |
cfd_data/rASk5uvMt2_aneurysm1/blood_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7426 |
cfd_data/rASk5uvMt2_aneurysm1/wall_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7427 |
cfd_data/rASk5uvMt2_aneurysm1/wall_mesh_registration.pt filter=lfs diff=lfs merge=lfs -text
|
| 7428 |
+
cfd_data/rCHyvghmVr_aneurysm1/blood_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7429 |
+
cfd_data/rCHyvghmVr_aneurysm1/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 7430 |
+
cfd_data/rCHyvghmVr_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 7431 |
+
cfd_data/rCHyvghmVr_aneurysm1/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 7432 |
+
cfd_data/rCHyvghmVr_aneurysm1/wall_data.pt filter=lfs diff=lfs merge=lfs -text
|
| 7433 |
+
cfd_data/rCHyvghmVr_aneurysm1/wall_mesh_registration.pt filter=lfs diff=lfs merge=lfs -text
|
cfd_data/rCHyvghmVr_aneurysm1/blood_data.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eca52755c8febf33968e1e4b1a84e577cd45d766dffa77e9f0040c54331765b
|
| 3 |
+
size 2823390690
|
cfd_data/rCHyvghmVr_aneurysm1/branch_ranking.npy
ADDED
|
Binary file (152 Bytes). View file
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/flowsplit_ratio.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
0.6106267503265365 0.3893732496734637
|
cfd_data/rCHyvghmVr_aneurysm1/forward_fusion_info.npz
ADDED
|
Binary file (5.67 kB). View file
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/geomagic_processed.obj
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:344bdf9ed7922d40fc24763cfd350692f40d2befcc2b94ef2e30f1607de38b77
|
| 3 |
+
size 18034298
|
cfd_data/rCHyvghmVr_aneurysm1/ghd_forward_fusion_info.npz
ADDED
|
Binary file (8.8 kB). View file
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/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/rCHyvghmVr_aneurysm1/ghd_merged_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/ghd_reconstructed.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/ghd_smoothed_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/ghd_surface.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/ghd_surface_regularized.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/inlet_centroids.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/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/rCHyvghmVr_aneurysm1/mesh.msh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1fbbd391f6f0ff0d95620d16a7dabfb187bdcd09b6380dedf6096e5409388e7
|
| 3 |
+
size 210515948
|
cfd_data/rCHyvghmVr_aneurysm1/mesh.vtu
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4162f4bd5aa3bb088e9728279a48161d6101f637f6dc4a7b49f151ac7aa27463
|
| 3 |
+
size 45930200
|
cfd_data/rCHyvghmVr_aneurysm1/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/rCHyvghmVr_aneurysm1/regularization.json
ADDED
|
@@ -0,0 +1,186 @@
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/ImperialNHS_fix/rCHyvghmVr_aneurysm1/geomagic_processed.obj",
|
| 3 |
+
"tolerance": 0.25,
|
| 4 |
+
"mode": "dome_normalized",
|
| 5 |
+
"dome_sac_mm": 9.969794835038774,
|
| 6 |
+
"stopping": "relaxed",
|
| 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": 2.6985903720258673,
|
| 17 |
+
"tolerance_sd": -1.0,
|
| 18 |
+
"signed_excess_sd": {
|
| 19 |
+
"0.3": 2.6281014936580753,
|
| 20 |
+
"0.38": 2.6985903720258673,
|
| 21 |
+
"0.47": 2.598036486034059,
|
| 22 |
+
"0.58": 2.3340277262595297,
|
| 23 |
+
"0.72": 2.005332945624648,
|
| 24 |
+
"0.9": 1.6607451228232564
|
| 25 |
+
},
|
| 26 |
+
"verdict": "rougher_than_reference",
|
| 27 |
+
"guard_scale": null,
|
| 28 |
+
"guard_below_band": null,
|
| 29 |
+
"target_scales": [
|
| 30 |
+
0.3,
|
| 31 |
+
0.38,
|
| 32 |
+
0.47,
|
| 33 |
+
0.58,
|
| 34 |
+
0.72,
|
| 35 |
+
0.9
|
| 36 |
+
],
|
| 37 |
+
"measured_at_edge": 0.13602009439404106,
|
| 38 |
+
"edge_after_measurement_remesh": 0.11215102259764288,
|
| 39 |
+
"remesher": "auto",
|
| 40 |
+
"n_seeds": 4000,
|
| 41 |
+
"elapsed_s": 297.07,
|
| 42 |
+
"sac_span_mm": 9.969794835038774,
|
| 43 |
+
"alpha": 0.6168632456092144,
|
| 44 |
+
"stopping": "relaxed",
|
| 45 |
+
"reference_sac_mm": 6.15,
|
| 46 |
+
"target_scales_used": [
|
| 47 |
+
0.3,
|
| 48 |
+
0.38,
|
| 49 |
+
0.47,
|
| 50 |
+
0.58,
|
| 51 |
+
0.72,
|
| 52 |
+
0.9
|
| 53 |
+
],
|
| 54 |
+
"target_scales_dropped": {
|
| 55 |
+
"1.1": "1.783 mm real: above the 1.60 mm calibre ceiling",
|
| 56 |
+
"1.35": "2.188 mm real: above the 1.60 mm calibre ceiling",
|
| 57 |
+
"1.65": "2.675 mm real: above the 1.60 mm calibre ceiling"
|
| 58 |
+
},
|
| 59 |
+
"scales_in_real_mm": {
|
| 60 |
+
"0.3": 0.4863314553677451,
|
| 61 |
+
"0.38": 0.6160198434658104,
|
| 62 |
+
"0.47": 0.761919280076134,
|
| 63 |
+
"0.58": 0.9402408137109738,
|
| 64 |
+
"0.72": 1.167195492882588,
|
| 65 |
+
"0.9": 1.4589943661032352
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"forward": {
|
| 69 |
+
"status": "stalled_at_overshoot_limit",
|
| 70 |
+
"converged": false,
|
| 71 |
+
"guard_scale_below_reference_at_input": false,
|
| 72 |
+
"smoother": "mcf",
|
| 73 |
+
"remesher": "auto",
|
| 74 |
+
"sigma_step_mm": 0.08,
|
| 75 |
+
"tolerance_sd": 0.25,
|
| 76 |
+
"time_budget_s": null,
|
| 77 |
+
"overshoot_limit_sd": -3.0,
|
| 78 |
+
"guard_tolerance_sd": 1000000.0,
|
| 79 |
+
"target_scales": [
|
| 80 |
+
0.3,
|
| 81 |
+
0.38,
|
| 82 |
+
0.47,
|
| 83 |
+
0.58,
|
| 84 |
+
0.72,
|
| 85 |
+
0.9
|
| 86 |
+
],
|
| 87 |
+
"guard_scale": null,
|
| 88 |
+
"rounds": 31,
|
| 89 |
+
"total_sigma_mm": 0.4454211490264017,
|
| 90 |
+
"target_edge": 0.13602009439404106,
|
| 91 |
+
"export_edge": 0.0814259484204163,
|
| 92 |
+
"metrics_measured_at_edge": 0.13602009439404106,
|
| 93 |
+
"n_vertices_in": 87691,
|
| 94 |
+
"n_vertices_out": 60407,
|
| 95 |
+
"n_seeds_used": 4000,
|
| 96 |
+
"elapsed_s": 487.51,
|
| 97 |
+
"edge_out": 0.06439218951891286,
|
| 98 |
+
"quality_out": 0.9836536353808005,
|
| 99 |
+
"smoothing_displacement_mm": 0.24221086953623988,
|
| 100 |
+
"surface_deviation_vs_original_max_mm": 0.24120235111292831,
|
| 101 |
+
"surface_deviation_vs_original_mean_mm": 0.023162923848559145,
|
| 102 |
+
"patch_truncation_fraction": {
|
| 103 |
+
"0.3": 0.0,
|
| 104 |
+
"0.38": 0.0,
|
| 105 |
+
"0.47": 0.0,
|
| 106 |
+
"0.58": 0.0,
|
| 107 |
+
"0.72": 0.0,
|
| 108 |
+
"0.9": 0.0
|
| 109 |
+
},
|
| 110 |
+
"signed_excess_before": {
|
| 111 |
+
"0.3": 2.6281014936580753,
|
| 112 |
+
"0.38": 2.6985903720258673,
|
| 113 |
+
"0.47": 2.598036486034059,
|
| 114 |
+
"0.58": 2.3340277262595297,
|
| 115 |
+
"0.72": 2.005332945624648,
|
| 116 |
+
"0.9": 1.6607451228232564
|
| 117 |
+
},
|
| 118 |
+
"signed_excess_after": {
|
| 119 |
+
"0.3": -1.9258844823060566,
|
| 120 |
+
"0.38": -1.2478768681849022,
|
| 121 |
+
"0.47": -0.5330709579101499,
|
| 122 |
+
"0.58": 0.0059288670027737534,
|
| 123 |
+
"0.72": 0.41160752797006606,
|
| 124 |
+
"0.9": 0.6861171109230934
|
| 125 |
+
},
|
| 126 |
+
"below_band_after": {
|
| 127 |
+
"0.3": 0.935296145612695,
|
| 128 |
+
"0.38": 0.2108774720509268,
|
| 129 |
+
"0.47": 0.025453541779773003,
|
| 130 |
+
"0.58": 0.0,
|
| 131 |
+
"0.72": 0.0,
|
| 132 |
+
"0.9": 0.0
|
| 133 |
+
},
|
| 134 |
+
"input_inspection": {
|
| 135 |
+
"n_vertices": 87691,
|
| 136 |
+
"n_faces": 175140,
|
| 137 |
+
"bbox_diagonal": 22.901828452882633,
|
| 138 |
+
"watertight": false,
|
| 139 |
+
"n_components": 1,
|
| 140 |
+
"n_degenerate_faces": 0,
|
| 141 |
+
"edge_mean": 0.0542378791790627,
|
| 142 |
+
"edge_cv": 0.17793382933070398,
|
| 143 |
+
"n_boundary_vertices": 244,
|
| 144 |
+
"warnings": []
|
| 145 |
+
},
|
| 146 |
+
"reference_cases": 323,
|
| 147 |
+
"sac_span_mm": 9.969794835038774,
|
| 148 |
+
"alpha": 0.6168632456092144,
|
| 149 |
+
"stopping": "relaxed",
|
| 150 |
+
"reference_sac_mm": 6.15,
|
| 151 |
+
"target_scales_used": [
|
| 152 |
+
0.3,
|
| 153 |
+
0.38,
|
| 154 |
+
0.47,
|
| 155 |
+
0.58,
|
| 156 |
+
0.72,
|
| 157 |
+
0.9
|
| 158 |
+
],
|
| 159 |
+
"target_scales_dropped": {
|
| 160 |
+
"1.1": "1.783 mm real: above the 1.60 mm calibre ceiling",
|
| 161 |
+
"1.35": "2.188 mm real: above the 1.60 mm calibre ceiling",
|
| 162 |
+
"1.65": "2.675 mm real: above the 1.60 mm calibre ceiling"
|
| 163 |
+
},
|
| 164 |
+
"scales_in_real_mm": {
|
| 165 |
+
"0.3": 0.4863314553677451,
|
| 166 |
+
"0.38": 0.6160198434658104,
|
| 167 |
+
"0.47": 0.761919280076134,
|
| 168 |
+
"0.58": 0.9402408137109738,
|
| 169 |
+
"0.72": 1.167195492882588,
|
| 170 |
+
"0.9": 1.4589943661032352
|
| 171 |
+
},
|
| 172 |
+
"surface_deviation_vs_original_max_mm_real": 0.3910143015162409,
|
| 173 |
+
"surface_deviation_vs_original_mean_mm_real": 0.037549528219473396,
|
| 174 |
+
"smoothing_displacement_mm_real": 0.3926492156248219,
|
| 175 |
+
"total_sigma_mm_real": 0.7220743855252774,
|
| 176 |
+
"edge_out_real": 0.10438649081016184
|
| 177 |
+
},
|
| 178 |
+
"cap_shift_mm": [
|
| 179 |
+
0.07359237236147854,
|
| 180 |
+
0.017926895686272374,
|
| 181 |
+
0.04506123106461018
|
| 182 |
+
],
|
| 183 |
+
"action": "regularized",
|
| 184 |
+
"surface_used": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/ImperialNHS_fix/rCHyvghmVr_aneurysm1/ghd_surface_regularized.vtp",
|
| 185 |
+
"reason": "roughness above reference (worst target excess +2.70 SD); regularizer status stalled_at_overshoot_limit"
|
| 186 |
+
}
|
cfd_data/rCHyvghmVr_aneurysm1/udf_waveform_5cycles.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_data/rCHyvghmVr_aneurysm1/wall_data.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89e46f6d742b62cca74c76fe976ba7ab3ee1c18b5e61b731509949630c511765
|
| 3 |
+
size 37085006
|
cfd_data/rCHyvghmVr_aneurysm1/wall_mesh_registration.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c088f26b1571c263bfdb881a63e1ac83c70d18e246c114f971d20339d6d89fc
|
| 3 |
+
size 3283881
|