Add cfd_cases_pending: CFD case folders (no results yet) of B2o6VFmWVW_aneurysm1, BcXeCx3voF_aneurysm1, BmsAIvOmyi_aneurysm1
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +9 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/branch_ranking.npy +3 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/forward_fusion_info.npz +3 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/fusion_info_extruded.npz +3 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/geomagic_processed.obj +3 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_forward_fusion_info.npz +3 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_fusion_params.json +11 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_merged_reconstruction.obj +0 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_reconstructed.obj +0 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_smoothed_reconstruction.obj +0 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_surface.vtp +0 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/inlet_centroids.csv +0 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/jnl_transient +24 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/mesh.msh +3 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/mesh.vtu +3 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/mesh_params.json +17 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/parabolic_vinlet_udf_full.c +200 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/reg_mesh.obj +0 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/reg_mesh.vtp +0 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/reg_mesh_regularization.json +195 -0
- cfd_cases_pending/B2o6VFmWVW_aneurysm1/udf_waveform_5cycles.txt +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/branch_ranking.npy +3 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/forward_fusion_info.npz +3 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/fusion_info_extruded.npz +3 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/geomagic_processed.obj +3 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_forward_fusion_info.npz +3 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_fusion_params.json +11 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_merged_reconstruction.obj +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_reconstructed.obj +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_smoothed_reconstruction.obj +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_surface.vtp +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/inlet_centroids.csv +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/jnl_transient +24 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/mesh.msh +3 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/mesh.vtu +3 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/mesh_params.json +17 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/parabolic_vinlet_udf_full.c +200 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/reg_mesh.obj +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/reg_mesh.vtp +0 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/reg_mesh_regularization.json +204 -0
- cfd_cases_pending/BcXeCx3voF_aneurysm1/udf_waveform_5cycles.txt +0 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/branch_ranking.npy +3 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/forward_fusion_info.npz +3 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/fusion_info_extruded.npz +3 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/geomagic_processed.obj +3 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_forward_fusion_info.npz +3 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_fusion_params.json +11 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_merged_reconstruction.obj +0 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_reconstructed.obj +0 -0
- cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_smoothed_reconstruction.obj +0 -0
.gitattributes
CHANGED
|
@@ -836,3 +836,12 @@ cfd_data/vJS7ISxFri_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
|
| 836 |
cfd_data/yHqeJVY84k_aneurysm1/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 837 |
cfd_data/yHqeJVY84k_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 838 |
cfd_data/ziSACL5Z7M_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 836 |
cfd_data/yHqeJVY84k_aneurysm1/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 837 |
cfd_data/yHqeJVY84k_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 838 |
cfd_data/ziSACL5Z7M_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 839 |
+
cfd_cases_pending/B2o6VFmWVW_aneurysm1/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 840 |
+
cfd_cases_pending/B2o6VFmWVW_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 841 |
+
cfd_cases_pending/B2o6VFmWVW_aneurysm1/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 842 |
+
cfd_cases_pending/BcXeCx3voF_aneurysm1/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 843 |
+
cfd_cases_pending/BcXeCx3voF_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 844 |
+
cfd_cases_pending/BcXeCx3voF_aneurysm1/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
| 845 |
+
cfd_cases_pending/BmsAIvOmyi_aneurysm1/geomagic_processed.obj filter=lfs diff=lfs merge=lfs -text
|
| 846 |
+
cfd_cases_pending/BmsAIvOmyi_aneurysm1/mesh.msh filter=lfs diff=lfs merge=lfs -text
|
| 847 |
+
cfd_cases_pending/BmsAIvOmyi_aneurysm1/mesh.vtu filter=lfs diff=lfs merge=lfs -text
|
cfd_cases_pending/B2o6VFmWVW_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
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:101d998a71aacf5a78916362908a60a5201e87eb9577d0c3fdcf8ae076fdbab8
|
| 3 |
+
size 4932
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/fusion_info_extruded.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6756e6c822b4a473a00c837654d82bc2b8bc99fb175909791e2570018a806da6
|
| 3 |
+
size 8538
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/geomagic_processed.obj
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09e043545cc3cb14c8290f5413f56cc477dd0c47c4eb6bfb820f44b8b16f6d54
|
| 3 |
+
size 20027797
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55204839d96e0bb0b483ee416ad2b2c44d13f2dc33455824e5e48876c6ae7c80
|
| 3 |
+
size 6618
|
cfd_cases_pending/B2o6VFmWVW_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_cases_pending/B2o6VFmWVW_aneurysm1/ghd_merged_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_reconstructed.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_smoothed_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/ghd_surface.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/inlet_centroids.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/B2o6VFmWVW_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
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/mesh.msh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8c81ff5336d799854ea9b11d98d5aced96ecd99e8b9b1015966d5e75768f5c8
|
| 3 |
+
size 250657915
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/mesh.vtu
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ec1df674cf7fc7c5070b87675eb76dc991974bb6cb5a9b0ac22ada56f08433b
|
| 3 |
+
size 55032551
|
cfd_cases_pending/B2o6VFmWVW_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": 658.0037987258461,
|
| 14 |
+
"area": 728.0944990412451,
|
| 15 |
+
"edge": 0.1961,
|
| 16 |
+
"n_volume_cells": 3220282
|
| 17 |
+
}
|
cfd_cases_pending/B2o6VFmWVW_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 |
+
}
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/reg_mesh.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/reg_mesh.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/reg_mesh_regularization.json
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/angioflow_fix/B2o6VFmWVW_aneurysm1/ghd_smoothed_reconstruction.obj",
|
| 3 |
+
"tolerance": 0.25,
|
| 4 |
+
"mode": "dome_normalized",
|
| 5 |
+
"dome_sac_mm": 4.491812809059526,
|
| 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": 1.0677898690163246,
|
| 17 |
+
"tolerance_sd": -1.0,
|
| 18 |
+
"signed_excess_sd": {
|
| 19 |
+
"0.47": 1.0677898690163246,
|
| 20 |
+
"0.58": 0.40245388116550335,
|
| 21 |
+
"0.72": -0.08093601348089907,
|
| 22 |
+
"0.9": -0.4642571828004489,
|
| 23 |
+
"1.1": -0.7247455663753852,
|
| 24 |
+
"1.35": -0.9497436021907848,
|
| 25 |
+
"1.65": -1.141332365747321
|
| 26 |
+
},
|
| 27 |
+
"verdict": "rougher_than_reference",
|
| 28 |
+
"guard_scale": null,
|
| 29 |
+
"guard_below_band": null,
|
| 30 |
+
"target_scales": [
|
| 31 |
+
0.47,
|
| 32 |
+
0.58,
|
| 33 |
+
0.72,
|
| 34 |
+
0.9,
|
| 35 |
+
1.1,
|
| 36 |
+
1.35,
|
| 37 |
+
1.65
|
| 38 |
+
],
|
| 39 |
+
"measured_at_edge": 0.13602009439404106,
|
| 40 |
+
"edge_after_measurement_remesh": 0.11220712166259807,
|
| 41 |
+
"remesher": "auto",
|
| 42 |
+
"n_seeds": 4000,
|
| 43 |
+
"elapsed_s": 208.68,
|
| 44 |
+
"sac_span_mm": 4.491812809059526,
|
| 45 |
+
"alpha": 1.369157678965624,
|
| 46 |
+
"stopping": "relaxed",
|
| 47 |
+
"reference_sac_mm": 6.15,
|
| 48 |
+
"target_scales_used": [
|
| 49 |
+
0.47,
|
| 50 |
+
0.58,
|
| 51 |
+
0.72,
|
| 52 |
+
0.9,
|
| 53 |
+
1.1,
|
| 54 |
+
1.35,
|
| 55 |
+
1.65
|
| 56 |
+
],
|
| 57 |
+
"target_scales_dropped": {
|
| 58 |
+
"0.3": "0.219 mm real: below the 0.30 mm resolution floor",
|
| 59 |
+
"0.38": "0.278 mm real: below the 0.30 mm resolution floor"
|
| 60 |
+
},
|
| 61 |
+
"scales_in_real_mm": {
|
| 62 |
+
"0.47": 0.3432767512614597,
|
| 63 |
+
"0.58": 0.42361811857797155,
|
| 64 |
+
"0.72": 0.5258707678898957,
|
| 65 |
+
"0.9": 0.6573384598623697,
|
| 66 |
+
"1.1": 0.8034136731651186,
|
| 67 |
+
"1.35": 0.9860076897935546,
|
| 68 |
+
"1.65": 1.2051205097476776
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"forward": {
|
| 72 |
+
"status": "converged",
|
| 73 |
+
"converged": true,
|
| 74 |
+
"guard_scale_below_reference_at_input": false,
|
| 75 |
+
"smoother": "mcf",
|
| 76 |
+
"remesher": "auto",
|
| 77 |
+
"sigma_step_mm": 0.08,
|
| 78 |
+
"tolerance_sd": 0.25,
|
| 79 |
+
"time_budget_s": null,
|
| 80 |
+
"overshoot_limit_sd": -3.0,
|
| 81 |
+
"guard_tolerance_sd": 1000000.0,
|
| 82 |
+
"target_scales": [
|
| 83 |
+
0.47,
|
| 84 |
+
0.58,
|
| 85 |
+
0.72,
|
| 86 |
+
0.9,
|
| 87 |
+
1.1,
|
| 88 |
+
1.35,
|
| 89 |
+
1.65
|
| 90 |
+
],
|
| 91 |
+
"guard_scale": null,
|
| 92 |
+
"rounds": 2,
|
| 93 |
+
"total_sigma_mm": 0.1131370849898476,
|
| 94 |
+
"target_edge": 0.13602009439404106,
|
| 95 |
+
"export_edge": 0.18072881362346235,
|
| 96 |
+
"metrics_measured_at_edge": 0.13602009439404106,
|
| 97 |
+
"n_vertices_in": 5214,
|
| 98 |
+
"n_vertices_out": 69260,
|
| 99 |
+
"n_seeds_used": 4000,
|
| 100 |
+
"elapsed_s": 611.59,
|
| 101 |
+
"edge_out": 0.1431455521384714,
|
| 102 |
+
"quality_out": 0.982363282716571,
|
| 103 |
+
"smoothing_displacement_mm": 0.05496626687060668,
|
| 104 |
+
"surface_deviation_vs_original_max_mm": 0.08531488289610414,
|
| 105 |
+
"surface_deviation_vs_original_mean_mm": 0.0024951000479203687,
|
| 106 |
+
"patch_truncation_fraction": {
|
| 107 |
+
"0.47": 0.0,
|
| 108 |
+
"0.58": 0.0,
|
| 109 |
+
"0.72": 0.0,
|
| 110 |
+
"0.9": 0.0,
|
| 111 |
+
"1.1": 0.0,
|
| 112 |
+
"1.35": 0.0,
|
| 113 |
+
"1.65": 0.0
|
| 114 |
+
},
|
| 115 |
+
"signed_excess_before": {
|
| 116 |
+
"0.47": 1.0677898690163246,
|
| 117 |
+
"0.58": 0.40245388116550335,
|
| 118 |
+
"0.72": -0.08093601348089907,
|
| 119 |
+
"0.9": -0.4642571828004489,
|
| 120 |
+
"1.1": -0.7247455663753852,
|
| 121 |
+
"1.35": -0.9497436021907848,
|
| 122 |
+
"1.65": -1.141332365747321
|
| 123 |
+
},
|
| 124 |
+
"signed_excess_after": {
|
| 125 |
+
"0.47": -0.37638123051586586,
|
| 126 |
+
"0.58": -0.599592660784932,
|
| 127 |
+
"0.72": -0.7333004671445286,
|
| 128 |
+
"0.9": -0.8660524501729921,
|
| 129 |
+
"1.1": -0.9741629234166659,
|
| 130 |
+
"1.35": -1.094572438685866,
|
| 131 |
+
"1.65": -1.2184686387846222
|
| 132 |
+
},
|
| 133 |
+
"below_band_after": {
|
| 134 |
+
"0.47": 0.0,
|
| 135 |
+
"0.58": 0.011064523043144488,
|
| 136 |
+
"0.72": 0.0973899395894725,
|
| 137 |
+
"0.9": 0.26079066867292916,
|
| 138 |
+
"1.1": 0.4026866461132245,
|
| 139 |
+
"1.35": 0.5508259935347392,
|
| 140 |
+
"1.65": 0.6853037146767605
|
| 141 |
+
},
|
| 142 |
+
"input_inspection": {
|
| 143 |
+
"n_vertices": 5214,
|
| 144 |
+
"n_faces": 10311,
|
| 145 |
+
"bbox_diagonal": 49.2839301480188,
|
| 146 |
+
"watertight": false,
|
| 147 |
+
"n_components": 1,
|
| 148 |
+
"n_degenerate_faces": 0,
|
| 149 |
+
"edge_mean": 0.5603775981490291,
|
| 150 |
+
"edge_cv": 0.5226140783160911,
|
| 151 |
+
"n_boundary_vertices": 119,
|
| 152 |
+
"warnings": []
|
| 153 |
+
},
|
| 154 |
+
"reference_cases": 323,
|
| 155 |
+
"sac_span_mm": 4.491812809059526,
|
| 156 |
+
"alpha": 1.369157678965624,
|
| 157 |
+
"stopping": "relaxed",
|
| 158 |
+
"reference_sac_mm": 6.15,
|
| 159 |
+
"target_scales_used": [
|
| 160 |
+
0.47,
|
| 161 |
+
0.58,
|
| 162 |
+
0.72,
|
| 163 |
+
0.9,
|
| 164 |
+
1.1,
|
| 165 |
+
1.35,
|
| 166 |
+
1.65
|
| 167 |
+
],
|
| 168 |
+
"target_scales_dropped": {
|
| 169 |
+
"0.3": "0.219 mm real: below the 0.30 mm resolution floor",
|
| 170 |
+
"0.38": "0.278 mm real: below the 0.30 mm resolution floor"
|
| 171 |
+
},
|
| 172 |
+
"scales_in_real_mm": {
|
| 173 |
+
"0.47": 0.3432767512614597,
|
| 174 |
+
"0.58": 0.42361811857797155,
|
| 175 |
+
"0.72": 0.5258707678898957,
|
| 176 |
+
"0.9": 0.6573384598623697,
|
| 177 |
+
"1.1": 0.8034136731651186,
|
| 178 |
+
"1.35": 0.9860076897935546,
|
| 179 |
+
"1.65": 1.2051205097476776
|
| 180 |
+
},
|
| 181 |
+
"surface_deviation_vs_original_max_mm_real": 0.06231194858473725,
|
| 182 |
+
"surface_deviation_vs_original_mean_mm_real": 0.0018223613585583332,
|
| 183 |
+
"smoothing_displacement_mm_real": 0.04014604578789843,
|
| 184 |
+
"total_sigma_mm_real": 0.08263261911171606,
|
| 185 |
+
"edge_out_real": 0.10455008530983481
|
| 186 |
+
},
|
| 187 |
+
"cap_shift_mm": [
|
| 188 |
+
0.04714847602200725,
|
| 189 |
+
0.1112762264443225,
|
| 190 |
+
0.14717605546482282
|
| 191 |
+
],
|
| 192 |
+
"action": "regularized",
|
| 193 |
+
"surface_used": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/angioflow_fix/B2o6VFmWVW_aneurysm1/reg_mesh.vtp",
|
| 194 |
+
"reason": "roughness above reference (worst target excess +1.07 SD); regularizer status converged"
|
| 195 |
+
}
|
cfd_cases_pending/B2o6VFmWVW_aneurysm1/udf_waveform_5cycles.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_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
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9678fc8be277ae55f49db1edef0a2df4dc3219d467a9c8304f4962a6b66f4379
|
| 3 |
+
size 4791
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/fusion_info_extruded.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a3b5859c6fa174db3fd2a1d799d4d92505c9b6145ea49867298107f0624ce5a
|
| 3 |
+
size 6807
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/geomagic_processed.obj
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bf3682b9e27a27149d0beb77d016df7b9d410ef50aca9302d4878eafbb3562d
|
| 3 |
+
size 10963919
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:694d5b677202cb0fdfff09fd4a5609ae1be9c007a0a5134895600c496501f154
|
| 3 |
+
size 5607
|
cfd_cases_pending/BcXeCx3voF_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_cases_pending/BcXeCx3voF_aneurysm1/ghd_merged_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_reconstructed.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_smoothed_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/ghd_surface.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/inlet_centroids.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_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
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/mesh.msh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fbf9e7abda7b2236e3f8b81a74237d3fb968f129a5a09592d54f7ba6b051dda
|
| 3 |
+
size 242037885
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/mesh.vtu
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8563bf9737e469e99480eb97fe6c06914b47fbf32bb7bf18bf1e1ec85fb01bdf
|
| 3 |
+
size 53296472
|
cfd_cases_pending/BcXeCx3voF_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": 417.6052545896956,
|
| 14 |
+
"area": 424.75678664334794,
|
| 15 |
+
"edge": 0.1498,
|
| 16 |
+
"n_volume_cells": 3111531
|
| 17 |
+
}
|
cfd_cases_pending/BcXeCx3voF_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 |
+
}
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/reg_mesh.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/reg_mesh.vtp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/reg_mesh_regularization.json
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/angioflow_fix/BcXeCx3voF_aneurysm1/ghd_smoothed_reconstruction.obj",
|
| 3 |
+
"tolerance": 0.25,
|
| 4 |
+
"mode": "dome_normalized",
|
| 5 |
+
"dome_sac_mm": 7.1787639626401045,
|
| 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": 3.09558023662442,
|
| 17 |
+
"tolerance_sd": -1.0,
|
| 18 |
+
"signed_excess_sd": {
|
| 19 |
+
"0.3": 3.09558023662442,
|
| 20 |
+
"0.38": 2.2534246460671876,
|
| 21 |
+
"0.47": 1.5983399843298955,
|
| 22 |
+
"0.58": 1.0742616843622852,
|
| 23 |
+
"0.72": 0.7274248761521234,
|
| 24 |
+
"0.9": 0.4853987160774496,
|
| 25 |
+
"1.1": 0.33703607274833425,
|
| 26 |
+
"1.35": 0.24176008689652093
|
| 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.11214436044957583,
|
| 43 |
+
"remesher": "auto",
|
| 44 |
+
"n_seeds": 4000,
|
| 45 |
+
"elapsed_s": 31.8,
|
| 46 |
+
"sac_span_mm": 7.1787639626401045,
|
| 47 |
+
"alpha": 0.8566934408215645,
|
| 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.926 mm real: above the 1.60 mm calibre ceiling"
|
| 62 |
+
},
|
| 63 |
+
"scales_in_real_mm": {
|
| 64 |
+
"0.3": 0.3501836079336636,
|
| 65 |
+
"0.38": 0.44356590338264057,
|
| 66 |
+
"0.47": 0.5486209857627397,
|
| 67 |
+
"0.58": 0.677021642005083,
|
| 68 |
+
"0.72": 0.8404406590407927,
|
| 69 |
+
"0.9": 1.0505508238009909,
|
| 70 |
+
"1.1": 1.2840065624234334,
|
| 71 |
+
"1.35": 1.5758262357014863
|
| 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": 3,
|
| 97 |
+
"total_sigma_mm": 0.13856406460551018,
|
| 98 |
+
"target_edge": 0.13602009439404106,
|
| 99 |
+
"export_edge": 0.11308353418844652,
|
| 100 |
+
"metrics_measured_at_edge": 0.13602009439404106,
|
| 101 |
+
"n_vertices_in": 2102,
|
| 102 |
+
"n_vertices_out": 39380,
|
| 103 |
+
"n_seeds_used": 4000,
|
| 104 |
+
"elapsed_s": 117.72,
|
| 105 |
+
"edge_out": 0.08976074341977135,
|
| 106 |
+
"quality_out": 0.9822493636487362,
|
| 107 |
+
"smoothing_displacement_mm": 0.04851969714520071,
|
| 108 |
+
"surface_deviation_vs_original_max_mm": 0.07114598072184429,
|
| 109 |
+
"surface_deviation_vs_original_mean_mm": 0.004129008174072858,
|
| 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": 3.09558023662442,
|
| 122 |
+
"0.38": 2.2534246460671876,
|
| 123 |
+
"0.47": 1.5983399843298955,
|
| 124 |
+
"0.58": 1.0742616843622852,
|
| 125 |
+
"0.72": 0.7274248761521234,
|
| 126 |
+
"0.9": 0.4853987160774496,
|
| 127 |
+
"1.1": 0.33703607274833425,
|
| 128 |
+
"1.35": 0.24176008689652093
|
| 129 |
+
},
|
| 130 |
+
"signed_excess_after": {
|
| 131 |
+
"0.3": -0.425161075443971,
|
| 132 |
+
"0.38": -0.27008177962002133,
|
| 133 |
+
"0.47": -0.036754247945089094,
|
| 134 |
+
"0.58": 0.1111020550676729,
|
| 135 |
+
"0.72": 0.21310141935993895,
|
| 136 |
+
"0.9": 0.24215484647917898,
|
| 137 |
+
"1.1": 0.21890040391285207,
|
| 138 |
+
"1.35": 0.18543646793023782
|
| 139 |
+
},
|
| 140 |
+
"below_band_after": {
|
| 141 |
+
"0.3": 0.0,
|
| 142 |
+
"0.38": 0.0,
|
| 143 |
+
"0.47": 0.0,
|
| 144 |
+
"0.58": 0.0,
|
| 145 |
+
"0.72": 0.0,
|
| 146 |
+
"0.9": 0.0,
|
| 147 |
+
"1.1": 0.0,
|
| 148 |
+
"1.35": 0.0
|
| 149 |
+
},
|
| 150 |
+
"input_inspection": {
|
| 151 |
+
"n_vertices": 2102,
|
| 152 |
+
"n_faces": 4131,
|
| 153 |
+
"bbox_diagonal": 19.031529061018027,
|
| 154 |
+
"watertight": false,
|
| 155 |
+
"n_components": 1,
|
| 156 |
+
"n_degenerate_faces": 0,
|
| 157 |
+
"edge_mean": 0.43253556865127724,
|
| 158 |
+
"edge_cv": 0.5181748738245493,
|
| 159 |
+
"n_boundary_vertices": 75,
|
| 160 |
+
"warnings": []
|
| 161 |
+
},
|
| 162 |
+
"reference_cases": 323,
|
| 163 |
+
"sac_span_mm": 7.1787639626401045,
|
| 164 |
+
"alpha": 0.8566934408215645,
|
| 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.926 mm real: above the 1.60 mm calibre ceiling"
|
| 179 |
+
},
|
| 180 |
+
"scales_in_real_mm": {
|
| 181 |
+
"0.3": 0.3501836079336636,
|
| 182 |
+
"0.38": 0.44356590338264057,
|
| 183 |
+
"0.47": 0.5486209857627397,
|
| 184 |
+
"0.58": 0.677021642005083,
|
| 185 |
+
"0.72": 0.8404406590407927,
|
| 186 |
+
"0.9": 1.0505508238009909,
|
| 187 |
+
"1.1": 1.2840065624234334,
|
| 188 |
+
"1.35": 1.5758262357014863
|
| 189 |
+
},
|
| 190 |
+
"surface_deviation_vs_original_max_mm_real": 0.08304718739718103,
|
| 191 |
+
"surface_deviation_vs_original_mean_mm_real": 0.004819703265281406,
|
| 192 |
+
"smoothing_displacement_mm_real": 0.05663600867385021,
|
| 193 |
+
"total_sigma_mm_real": 0.16174288024503605,
|
| 194 |
+
"edge_out_real": 0.10477580327181128
|
| 195 |
+
},
|
| 196 |
+
"cap_shift_mm": [
|
| 197 |
+
0.0016999305294212257,
|
| 198 |
+
0.2800410814430565,
|
| 199 |
+
0.08806627902823166
|
| 200 |
+
],
|
| 201 |
+
"action": "regularized",
|
| 202 |
+
"surface_used": "/media/yaplab2/wd8tb/wenhao/angioflow/cfd/angioflow_fix/BcXeCx3voF_aneurysm1/reg_mesh.vtp",
|
| 203 |
+
"reason": "roughness above reference (worst target excess +3.10 SD); regularizer status converged"
|
| 204 |
+
}
|
cfd_cases_pending/BcXeCx3voF_aneurysm1/udf_waveform_5cycles.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BmsAIvOmyi_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
|
cfd_cases_pending/BmsAIvOmyi_aneurysm1/forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84d65b78851ab12c585f88a75271fecc2e7f49b7d0fb32a394cc88d9df725e26
|
| 3 |
+
size 5506
|
cfd_cases_pending/BmsAIvOmyi_aneurysm1/fusion_info_extruded.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0a53e4b45450479643422a5a08bc681ffb5b0b850a9a20d4db75f7f25abedca
|
| 3 |
+
size 7954
|
cfd_cases_pending/BmsAIvOmyi_aneurysm1/geomagic_processed.obj
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76119df3a9f0cf0f8b4aced16b53168763662e7b9324c0b0fb235eb793c3e673
|
| 3 |
+
size 20238400
|
cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_forward_fusion_info.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f863d17a9fdceffbfcdb6be7d3a9fbb78f9327fe041c8899e3e64741d58a00df
|
| 3 |
+
size 6322
|
cfd_cases_pending/BmsAIvOmyi_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_cases_pending/BmsAIvOmyi_aneurysm1/ghd_merged_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_reconstructed.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cfd_cases_pending/BmsAIvOmyi_aneurysm1/ghd_smoothed_reconstruction.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|