angioflow_fix_batch2: HjYE3vqBnn_aneurysm1
Browse files- .gitattributes +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/branch_ranking.npy +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/forward_fusion_info.npz +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/fusion_info_extruded.npz +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/geomagic_processed.obj +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_forward_fusion_info.npz +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_fusion_params.json +11 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_merged_reconstruction.obj +0 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_reconstructed.obj +0 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_smoothed_reconstruction.obj +0 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_surface.vtp +0 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/inlet_centroids.csv +0 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/jnl_transient +24 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh.msh +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh.vtu +3 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh_params.json +17 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/parabolic_vinlet_udf_full.c +200 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/reg_mesh.obj +0 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/reg_mesh.vtp +0 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/reg_mesh_regularization.json +203 -0
- angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/udf_waveform_5cycles.txt +0 -0
.gitattributes
CHANGED
|
@@ -220,3 +220,6 @@ angioflow_fix_batch2/HUfWo4Tb22_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs
|
|
| 220 |
angioflow_fix_batch2/HUfWo4Tb22_aneurysm1/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 221 |
angioflow_fix_batch2/HUfWo4Tb22_aneurysm2/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 222 |
angioflow_fix_batch2/HUfWo4Tb22_aneurysm2/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
angioflow_fix_batch2/HUfWo4Tb22_aneurysm1/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 221 |
angioflow_fix_batch2/HUfWo4Tb22_aneurysm2/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 222 |
angioflow_fix_batch2/HUfWo4Tb22_aneurysm2/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 223 |
+
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 224 |
+
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 225 |
+
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/branch_ranking.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edf57b3e7cc4d837db7a3b400e84ffa2cc07b6adc347edef9feabbc11c5183cb
|
| 3 |
+
size 144
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a17aa23e580c0edb093962a7e178e157d74d19cee4e9951659dfb9238802e291
|
| 3 |
+
size 5018
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/fusion_info_extruded.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17724bdb7d4f3ce0def024144162c6344ef932ef85e80243ab0ff976d0f0c8b6
|
| 3 |
+
size 7610
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/geomagic_processed.obj
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dbb4def0435e9f7043e074386dcb470289d04d5090e775bfb50e0cc6257648db
|
| 3 |
+
size 19626188
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:213267a6f5f21d2aacc51070921831359060f5ceaf5aa4f8b3bd2fd11996e375
|
| 3 |
+
size 6218
|
angioflow_fix_batch2/HjYE3vqBnn_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 |
+
}
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_merged_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_reconstructed.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_smoothed_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/ghd_surface.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/inlet_centroids.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/jnl_transient
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 pressure-outlet
|
| 8 |
+
/define/user-defined/use-built-in-compiler? yes
|
| 9 |
+
/define/user-defined/compiled-functions compile libudf yes parabolic_vinlet_udf_full.c "" ""
|
| 10 |
+
/define/user-defined/compiled-functions load libudf
|
| 11 |
+
/define/boundary-conditions/set/velocity-inlet surface4 () vmag yes yes udf inlet_x_velocity_transient::libudf quit
|
| 12 |
+
/solve/set/p-v-coupling 24
|
| 13 |
+
/solve/set/p-v-controls 2000000 0.5 0.5
|
| 14 |
+
/solve/monitors/residual/convergence-criteria 0.0001 0.0001 0.0001 0.0001
|
| 15 |
+
/solve/initialize/compute-defaults velocity-inlet surface4
|
| 16 |
+
/solve/initialize/initialize-flow
|
| 17 |
+
/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
|
| 18 |
+
/file/autosave/data-frequency 10
|
| 19 |
+
/solve/set/time-step 0.001
|
| 20 |
+
/solve/dual-time-iterate 1600 100
|
| 21 |
+
/file/write-case mesh_new.cas yes
|
| 22 |
+
/file/write-data mesh_new.dat yes
|
| 23 |
+
exit
|
| 24 |
+
yes
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh.msh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09183008d767fb6430c6d708d1d1158aa68092d1531ba5dfb90a9cd1e959c604
|
| 3 |
+
size 264362514
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh.vtu
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d105a6900b34374c38c850d7d1f440e4609586323943d526b50a5555796b533a
|
| 3 |
+
size 58057219
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/mesh_params.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"preset": "legacy",
|
| 3 |
+
"params": {
|
| 4 |
+
"base_edge": 0.13,
|
| 5 |
+
"ref_volume": 320.0,
|
| 6 |
+
"ref_area": 320.0,
|
| 7 |
+
"vol_exponent": 0.3,
|
| 8 |
+
"area_exponent": 0.5,
|
| 9 |
+
"max_edge": 1.0
|
| 10 |
+
},
|
| 11 |
+
"inflation": true,
|
| 12 |
+
"surface": "ghd_surface.vtp",
|
| 13 |
+
"volume": 785.3799858330975,
|
| 14 |
+
"area": 681.4207954175636,
|
| 15 |
+
"edge": 0.1897,
|
| 16 |
+
"n_volume_cells": 3393510
|
| 17 |
+
}
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/parabolic_vinlet_udf_full.c
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
}
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/reg_mesh.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/reg_mesh.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/reg_mesh_regularization.json
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/angioflow_fix/HjYE3vqBnn_aneurysm1/ghd_smoothed_reconstruction.obj",
|
| 3 |
+
"tolerance": 0.25,
|
| 4 |
+
"mode": "dome_normalized",
|
| 5 |
+
"dome_sac_mm": 6.518849220183977,
|
| 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.2306954970367996,
|
| 17 |
+
"tolerance_sd": -1.0,
|
| 18 |
+
"signed_excess_sd": {
|
| 19 |
+
"0.3": 2.2306954970367996,
|
| 20 |
+
"0.38": 1.398801600949425,
|
| 21 |
+
"0.47": 0.7597241975089972,
|
| 22 |
+
"0.58": 0.2332935267078506,
|
| 23 |
+
"0.72": -0.1521467325511924,
|
| 24 |
+
"0.9": -0.44344049538199665,
|
| 25 |
+
"1.1": -0.6444328936245718,
|
| 26 |
+
"1.35": -0.7967146611533474
|
| 27 |
+
},
|
| 28 |
+
"verdict": "rougher_than_reference",
|
| 29 |
+
"guard_scale": null,
|
| 30 |
+
"guard_below_band": null,
|
| 31 |
+
"target_scales": [
|
| 32 |
+
0.3,
|
| 33 |
+
0.38,
|
| 34 |
+
0.47,
|
| 35 |
+
0.58,
|
| 36 |
+
0.72,
|
| 37 |
+
0.9,
|
| 38 |
+
1.1,
|
| 39 |
+
1.35
|
| 40 |
+
],
|
| 41 |
+
"measured_at_edge": 0.13602009439404106,
|
| 42 |
+
"edge_after_measurement_remesh": 0.11237471552571546,
|
| 43 |
+
"remesher": "auto",
|
| 44 |
+
"n_seeds": 4000,
|
| 45 |
+
"elapsed_s": 65.2,
|
| 46 |
+
"sac_span_mm": 6.518849220183977,
|
| 47 |
+
"alpha": 0.9434180470010063,
|
| 48 |
+
"stopping": "relaxed",
|
| 49 |
+
"reference_sac_mm": 6.15,
|
| 50 |
+
"target_scales_used": [
|
| 51 |
+
0.3,
|
| 52 |
+
0.38,
|
| 53 |
+
0.47,
|
| 54 |
+
0.58,
|
| 55 |
+
0.72,
|
| 56 |
+
0.9,
|
| 57 |
+
1.1,
|
| 58 |
+
1.35
|
| 59 |
+
],
|
| 60 |
+
"target_scales_dropped": {
|
| 61 |
+
"1.65": "1.749 mm real: above the 1.60 mm calibre ceiling"
|
| 62 |
+
},
|
| 63 |
+
"scales_in_real_mm": {
|
| 64 |
+
"0.3": 0.3179926448870232,
|
| 65 |
+
"0.38": 0.4027906835235628,
|
| 66 |
+
"0.47": 0.4981884769896697,
|
| 67 |
+
"0.58": 0.6147857801149116,
|
| 68 |
+
"0.72": 0.7631823477288557,
|
| 69 |
+
"0.9": 0.9539779346610697,
|
| 70 |
+
"1.1": 1.1659730312524186,
|
| 71 |
+
"1.35": 1.4309669019916047
|
| 72 |
+
}
|
| 73 |
+
},
|
| 74 |
+
"forward": {
|
| 75 |
+
"status": "converged",
|
| 76 |
+
"converged": true,
|
| 77 |
+
"guard_scale_below_reference_at_input": false,
|
| 78 |
+
"smoother": "mcf",
|
| 79 |
+
"remesher": "auto",
|
| 80 |
+
"sigma_step_mm": 0.08,
|
| 81 |
+
"tolerance_sd": 0.25,
|
| 82 |
+
"time_budget_s": null,
|
| 83 |
+
"overshoot_limit_sd": -3.0,
|
| 84 |
+
"guard_tolerance_sd": 1000000.0,
|
| 85 |
+
"target_scales": [
|
| 86 |
+
0.3,
|
| 87 |
+
0.38,
|
| 88 |
+
0.47,
|
| 89 |
+
0.58,
|
| 90 |
+
0.72,
|
| 91 |
+
0.9,
|
| 92 |
+
1.1,
|
| 93 |
+
1.35
|
| 94 |
+
],
|
| 95 |
+
"guard_scale": null,
|
| 96 |
+
"rounds": 2,
|
| 97 |
+
"total_sigma_mm": 0.1131370849898476,
|
| 98 |
+
"target_edge": 0.13602009439404106,
|
| 99 |
+
"export_edge": 0.12453118220413284,
|
| 100 |
+
"metrics_measured_at_edge": 0.13602009439404106,
|
| 101 |
+
"n_vertices_in": 4022,
|
| 102 |
+
"n_vertices_out": 60458,
|
| 103 |
+
"n_seeds_used": 4000,
|
| 104 |
+
"elapsed_s": 178.21,
|
| 105 |
+
"edge_out": 0.09980608884668438,
|
| 106 |
+
"quality_out": 0.9836777554610755,
|
| 107 |
+
"smoothing_displacement_mm": 0.04699737255645724,
|
| 108 |
+
"surface_deviation_vs_original_max_mm": 0.06782060388030794,
|
| 109 |
+
"surface_deviation_vs_original_mean_mm": 0.002390058876188143,
|
| 110 |
+
"patch_truncation_fraction": {
|
| 111 |
+
"0.3": 0.0,
|
| 112 |
+
"0.38": 0.0,
|
| 113 |
+
"0.47": 0.0,
|
| 114 |
+
"0.58": 0.0,
|
| 115 |
+
"0.72": 0.0,
|
| 116 |
+
"0.9": 0.0,
|
| 117 |
+
"1.1": 0.0,
|
| 118 |
+
"1.35": 0.0
|
| 119 |
+
},
|
| 120 |
+
"signed_excess_before": {
|
| 121 |
+
"0.3": 2.2306954970367996,
|
| 122 |
+
"0.38": 1.398801600949425,
|
| 123 |
+
"0.47": 0.7597241975089972,
|
| 124 |
+
"0.58": 0.2332935267078506,
|
| 125 |
+
"0.72": -0.1521467325511924,
|
| 126 |
+
"0.9": -0.44344049538199665,
|
| 127 |
+
"1.1": -0.6444328936245718,
|
| 128 |
+
"1.35": -0.7967146611533474
|
| 129 |
+
},
|
| 130 |
+
"signed_excess_after": {
|
| 131 |
+
"0.3": -0.4977575091125332,
|
| 132 |
+
"0.38": -0.6993768507544481,
|
| 133 |
+
"0.47": -0.7219430207992182,
|
| 134 |
+
"0.58": -0.7256854755922122,
|
| 135 |
+
"0.72": -0.7227238851771777,
|
| 136 |
+
"0.9": -0.7456608625309842,
|
| 137 |
+
"1.1": -0.7976814291028925,
|
| 138 |
+
"1.35": -0.8696617476626936
|
| 139 |
+
},
|
| 140 |
+
"below_band_after": {
|
| 141 |
+
"0.3": 0.002536514428799254,
|
| 142 |
+
"0.38": 0.0,
|
| 143 |
+
"0.47": 0.0,
|
| 144 |
+
"0.58": 0.0,
|
| 145 |
+
"0.72": 0.0,
|
| 146 |
+
"0.9": 0.14183982919275717,
|
| 147 |
+
"1.1": 0.32966660129572284,
|
| 148 |
+
"1.35": 0.5012100876671902
|
| 149 |
+
},
|
| 150 |
+
"input_inspection": {
|
| 151 |
+
"n_vertices": 4022,
|
| 152 |
+
"n_faces": 7955,
|
| 153 |
+
"bbox_diagonal": 34.45306275296883,
|
| 154 |
+
"watertight": false,
|
| 155 |
+
"n_components": 1,
|
| 156 |
+
"n_degenerate_faces": 0,
|
| 157 |
+
"edge_mean": 0.4199206469327996,
|
| 158 |
+
"edge_cv": 0.49755179148053047,
|
| 159 |
+
"n_boundary_vertices": 89,
|
| 160 |
+
"warnings": []
|
| 161 |
+
},
|
| 162 |
+
"reference_cases": 323,
|
| 163 |
+
"sac_span_mm": 6.518849220183977,
|
| 164 |
+
"alpha": 0.9434180470010063,
|
| 165 |
+
"stopping": "relaxed",
|
| 166 |
+
"reference_sac_mm": 6.15,
|
| 167 |
+
"target_scales_used": [
|
| 168 |
+
0.3,
|
| 169 |
+
0.38,
|
| 170 |
+
0.47,
|
| 171 |
+
0.58,
|
| 172 |
+
0.72,
|
| 173 |
+
0.9,
|
| 174 |
+
1.1,
|
| 175 |
+
1.35
|
| 176 |
+
],
|
| 177 |
+
"target_scales_dropped": {
|
| 178 |
+
"1.65": "1.749 mm real: above the 1.60 mm calibre ceiling"
|
| 179 |
+
},
|
| 180 |
+
"scales_in_real_mm": {
|
| 181 |
+
"0.3": 0.3179926448870232,
|
| 182 |
+
"0.38": 0.4027906835235628,
|
| 183 |
+
"0.47": 0.4981884769896697,
|
| 184 |
+
"0.58": 0.6147857801149116,
|
| 185 |
+
"0.72": 0.7631823477288557,
|
| 186 |
+
"0.9": 0.9539779346610697,
|
| 187 |
+
"1.1": 1.1659730312524186,
|
| 188 |
+
"1.35": 1.4309669019916047
|
| 189 |
+
},
|
| 190 |
+
"surface_deviation_vs_original_max_mm_real": 0.07188817735244744,
|
| 191 |
+
"surface_deviation_vs_original_mean_mm_real": 0.00253340381158258,
|
| 192 |
+
"smoothing_displacement_mm_real": 0.04981606267322879,
|
| 193 |
+
"total_sigma_mm_real": 0.11992253630243192,
|
| 194 |
+
"edge_out_real": 0.10579200722728799
|
| 195 |
+
},
|
| 196 |
+
"cap_shift_mm": [
|
| 197 |
+
0.0708213600429424,
|
| 198 |
+
0.13012668942446676
|
| 199 |
+
],
|
| 200 |
+
"action": "regularized",
|
| 201 |
+
"surface_used": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/angioflow_fix/HjYE3vqBnn_aneurysm1/reg_mesh.vtp",
|
| 202 |
+
"reason": "roughness above reference (worst target excess +2.23 SD); regularizer status converged"
|
| 203 |
+
}
|
angioflow_fix_batch2/HjYE3vqBnn_aneurysm1/udf_waveform_5cycles.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|