CFD Analysis Skill
Purpose
The CFD Analysis skill provides deep integration with computational fluid dynamics tools for internal and external flow analysis, enabling systematic setup, execution, and post-processing of fluid simulations.
Capabilities
- ANSYS Fluent, CFX, OpenFOAM workflow automation
- Mesh generation for complex geometries (structured, unstructured)
- Turbulence model selection (k-epsilon, k-omega, SST, LES)
- Boundary condition specification (inlet, outlet, wall, symmetry)
- Steady-state and transient flow simulations
- Post-processing for pressure, velocity, and flow visualization
- Mesh independence studies and validation
- Pressure drop and flow coefficient calculations
Usage Guidelines
Pre-Processing
Geometry Preparation
CAD Cleanup
- Remove small features (< 3 cells)
- Fill gaps and holes
- Create smooth transitions
- Define fluid domain boundaries
Domain Definition
- Internal flow: Extract fluid volume
- External flow: Create far-field boundary
- Symmetry: Identify planes of symmetry
- Periodic: Define periodic pairs
Mesh Generation
Mesh Types
| Type |
Application |
Pros/Cons |
| Structured hex |
Simple geometries |
High quality, more effort |
| Unstructured tet |
Complex geometries |
Flexible, more cells |
| Polyhedral |
Complex internal |
Good quality, moderate count |
| Hybrid |
Mixed regions |
Optimized for accuracy |
Boundary Layer Mesh
First cell height: y+ = 1 (wall-resolved)
y+ = 30-300 (wall functions)
y = y+ * mu / (rho * u_tau)
u_tau = sqrt(tau_w / rho)
Mesh Quality Criteria
Orthogonality: > 0.1 (> 0.3 preferred)
Skewness: < 0.95 (< 0.8 preferred)
Aspect ratio: < 100 (< 20 near walls)
Solver Configuration
Turbulence Models
| Model |
Application |
Wall Treatment |
| k-epsilon Standard |
General industrial |
Wall functions |
| k-epsilon Realizable |
Rotation, separation |
Wall functions |
| k-omega SST |
Aerospace, separation |
Low-Re or wall functions |
| Spalart-Allmaras |
External aero |
Low-Re |
| LES/DES |
Unsteady, vortex shedding |
Wall-resolved |
Boundary Conditions
Inlet Conditions
- Mass flow rate or velocity
- Turbulence intensity (1-5% typical)
- Hydraulic diameter or length scale
- Temperature (if energy equation)
Outlet Conditions
- Pressure outlet (most common)
- Outflow (fully developed)
- Mass flow outlet (specified)
Wall Conditions
- No-slip (default)
- Roughness (if significant)
- Thermal (adiabatic, fixed T, heat flux)
Solution Settings
Discretization Schemes
Convection: Second-order upwind (accuracy)
First-order (stability)
Pressure: PRESTO (complex geometry)
Standard (simple geometry)
Convergence Criteria
Residuals: < 1e-4 (typical)
< 1e-6 (high accuracy)
Monitor: Mass imbalance < 0.1%
Force convergence
Post-Processing
Flow Visualization
- Streamlines and pathlines
- Velocity vectors
- Contour plots (P, V, T)
- Surface integral reports
Quantitative Results
- Pressure drop
- Flow coefficient (Cv)
- Heat transfer coefficient
- Force and moment
Process Integration
- ME-010: Computational Fluid Dynamics (CFD) Analysis
Input Schema
{
"geometry": "CAD file path",
"flow_type": "internal|external",
"fluid": {
"name": "string",
"density": "number (kg/m3)",
"viscosity": "number (Pa.s)",
"specific_heat": "number (J/kg.K, if thermal)"
},
"inlet": {
"type": "velocity|mass_flow|pressure",
"value": "number",
"temperature": "number (K, if thermal)"
},
"outlet": {
"type": "pressure|outflow",
"value": "number (if pressure)"
},
"analysis_type": "steady|transient",
"turbulence_model": "k-epsilon|k-omega-sst|spalart-allmaras|laminar"
}
Output Schema
{
"flow_results": {
"pressure_drop": "number (Pa)",
"flow_coefficient": "number (Cv)",
"max_velocity": "number (m/s)",
"reynolds_number": "number"
},
"forces": {
"drag": "number (N)",
"lift": "number (N)",
"moment": "array [Mx, My, Mz]"
},
"thermal_results": {
"heat_transfer_rate": "number (W)",
"average_htc": "number (W/m2.K)",
"outlet_temperature": "number (K)"
},
"mesh_statistics": {
"cell_count": "number",
"y_plus_range": [min, max],
"orthogonality_min": "number"
},
"convergence": {
"iterations": "number",
"residuals": "object",
"mass_imbalance": "number"
}
}
Best Practices
- Always perform mesh independence study
- Verify y+ values match turbulence model requirements
- Monitor mass and energy imbalance
- Validate with experimental data when available
- Start with steady-state before transient
- Use appropriate turbulence model for flow physics
Integration Points
- Connects with CAD Modeling for geometry
- Feeds into Thermal Analysis for conjugate heat transfer
- Supports Heat Exchanger Design for performance prediction
- Integrates with Test Correlation for validation
1---2name: cfd-fluids3description: Deep integration with computational fluid dynamics tools for internal and external flow analysis4---5
6# CFD Analysis Skill
7
8## Purpose
9
10The CFD Analysis skill provides deep integration with computational fluid dynamics tools for internal and external flow analysis, enabling systematic setup, execution, and post-processing of fluid simulations.
11
12## Capabilities
13
14- ANSYS Fluent, CFX, OpenFOAM workflow automation
15- Mesh generation for complex geometries (structured, unstructured)
16- Turbulence model selection (k-epsilon, k-omega, SST, LES)
17- Boundary condition specification (inlet, outlet, wall, symmetry)
18- Steady-state and transient flow simulations
19- Post-processing for pressure, velocity, and flow visualization
20- Mesh independence studies and validation
21- Pressure drop and flow coefficient calculations
22
23## Usage Guidelines
24
25### Pre-Processing
26
27#### Geometry Preparation
28
291. **CAD Cleanup**
30 - Remove small features (< 3 cells)
31 - Fill gaps and holes
32 - Create smooth transitions
33 - Define fluid domain boundaries
34
352. **Domain Definition**
36 - Internal flow: Extract fluid volume
37 - External flow: Create far-field boundary
38 - Symmetry: Identify planes of symmetry
39 - Periodic: Define periodic pairs
40
41#### Mesh Generation
42
431. **Mesh Types**
44 | Type | Application | Pros/Cons |
45 |------|-------------|-----------|
46 | Structured hex | Simple geometries | High quality, more effort |
47 | Unstructured tet | Complex geometries | Flexible, more cells |
48 | Polyhedral | Complex internal | Good quality, moderate count |
49 | Hybrid | Mixed regions | Optimized for accuracy |
50
512. **Boundary Layer Mesh**
52 ```
53 First cell height: y+ = 1 (wall-resolved)
54 y+ = 30-300 (wall functions)
55
56 y = y+ * mu / (rho * u_tau)
57 u_tau = sqrt(tau_w / rho)
58 ```
59
603. **Mesh Quality Criteria**
61 ```
62 Orthogonality: > 0.1 (> 0.3 preferred)
63 Skewness: < 0.95 (< 0.8 preferred)
64 Aspect ratio: < 100 (< 20 near walls)
65 ```
66
67### Solver Configuration
68
69#### Turbulence Models
70
71| Model | Application | Wall Treatment |
72|-------|-------------|----------------|
73| k-epsilon Standard | General industrial | Wall functions |
74| k-epsilon Realizable | Rotation, separation | Wall functions |
75| k-omega SST | Aerospace, separation | Low-Re or wall functions |
76| Spalart-Allmaras | External aero | Low-Re |
77| LES/DES | Unsteady, vortex shedding | Wall-resolved |
78
79#### Boundary Conditions
80
811. **Inlet Conditions**
82 - Mass flow rate or velocity
83 - Turbulence intensity (1-5% typical)
84 - Hydraulic diameter or length scale
85 - Temperature (if energy equation)
86
872. **Outlet Conditions**
88 - Pressure outlet (most common)
89 - Outflow (fully developed)
90 - Mass flow outlet (specified)
91
923. **Wall Conditions**
93 - No-slip (default)
94 - Roughness (if significant)
95 - Thermal (adiabatic, fixed T, heat flux)
96
97#### Solution Settings
98
991. **Discretization Schemes**
100 ```
101 Convection: Second-order upwind (accuracy)
102 First-order (stability)
103 Pressure: PRESTO (complex geometry)
104 Standard (simple geometry)
105 ```
106
1072. **Convergence Criteria**
108 ```
109 Residuals: < 1e-4 (typical)
110 < 1e-6 (high accuracy)
111
112 Monitor: Mass imbalance < 0.1%
113 Force convergence
114 ```
115
116### Post-Processing
117
1181. **Flow Visualization**
119 - Streamlines and pathlines
120 - Velocity vectors
121 - Contour plots (P, V, T)
122 - Surface integral reports
123
1242. **Quantitative Results**
125 - Pressure drop
126 - Flow coefficient (Cv)
127 - Heat transfer coefficient
128 - Force and moment
129
130## Process Integration
131
132- ME-010: Computational Fluid Dynamics (CFD) Analysis
133
134## Input Schema
135
136```json
137{
138 "geometry": "CAD file path",
139 "flow_type": "internal|external",
140 "fluid": {
141 "name": "string",
142 "density": "number (kg/m3)",
143 "viscosity": "number (Pa.s)",
144 "specific_heat": "number (J/kg.K, if thermal)"
145 },
146 "inlet": {
147 "type": "velocity|mass_flow|pressure",
148 "value": "number",
149 "temperature": "number (K, if thermal)"
150 },
151 "outlet": {
152 "type": "pressure|outflow",
153 "value": "number (if pressure)"
154 },
155 "analysis_type": "steady|transient",
156 "turbulence_model": "k-epsilon|k-omega-sst|spalart-allmaras|laminar"
157}
158```
159
160## Output Schema
161
162```json
163{
164 "flow_results": {
165 "pressure_drop": "number (Pa)",
166 "flow_coefficient": "number (Cv)",
167 "max_velocity": "number (m/s)",
168 "reynolds_number": "number"
169 },
170 "forces": {
171 "drag": "number (N)",
172 "lift": "number (N)",
173 "moment": "array [Mx, My, Mz]"
174 },
175 "thermal_results": {
176 "heat_transfer_rate": "number (W)",
177 "average_htc": "number (W/m2.K)",
178 "outlet_temperature": "number (K)"
179 },
180 "mesh_statistics": {
181 "cell_count": "number",
182 "y_plus_range": [min, max],
183 "orthogonality_min": "number"
184 },
185 "convergence": {
186 "iterations": "number",
187 "residuals": "object",
188 "mass_imbalance": "number"
189 }
190}
191```
192
193## Best Practices
194
1951. Always perform mesh independence study
1962. Verify y+ values match turbulence model requirements
1973. Monitor mass and energy imbalance
1984. Validate with experimental data when available
1995. Start with steady-state before transient
2006. Use appropriate turbulence model for flow physics
201
202## Integration Points
203
204- Connects with CAD Modeling for geometry
205- Feeds into Thermal Analysis for conjugate heat transfer
206- Supports Heat Exchanger Design for performance prediction
207- Integrates with Test Correlation for validation