-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME_cfd_solver.txt
More file actions
68 lines (56 loc) · 1.65 KB
/
README_cfd_solver.txt
File metadata and controls
68 lines (56 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
CFD Surrogate Baseline Solver
=================================
Owner: Dr. Ahmed Kaffel
Description:
------------
This solver provides a baseline data-driven model for CFD simulations.
It uses:
- Principal Component Analysis (PCA) for output dimensionality reduction
- Ridge Regression for learning the mapping between CFD inputs and outputs
Purpose:
--------
The goal of this solver is to:
- Build a first surrogate model of CFD simulations
- Verify dataset consistency and predictive capability
- Provide a baseline for advanced modeling (e.g., neural networks)
Required Input:
---------------
A CSV file named:
cfd_dataset.csv
Format:
- One row per simulation case
- Must include:
Inputs:
D, Lx, Ly, velocity_inlet, discharge, Reynolds, Froude
Outputs:
mean_velocity, max_velocity, mean_pressure, max_shear, free_surface_mean
You may modify column names in the script if needed.
How to Run:
-----------
1. Place the dataset (cfd_dataset.csv) in the same folder
2. Run:
python src/cfd_surrogate_baseline.py
Outputs:
--------
A folder named:
baseline_results/
Containing:
- metrics.csv (model performance)
- predictions.csv (true vs predicted values)
- pca_explained_variance.csv
- plots for each output variable
Notes:
------
- This is a baseline model, not the final model
- Performance depends primarily on dataset quality
- If results are poor, improve dataset consistency and coverage
Next Steps:
-----------
- Extend to nonlinear models (PyTorch)
- Use autoencoders instead of PCA
- Incorporate physics-based constraints
Contact:
--------
For questions or collaboration:
Dr. Ahmed Kaffel
ITECCS | University of Wisconsin–Milwaukee