Skip to content

Airfoil DFlow

The airfoil example uses CST/Kulfan geometry and a lightweight evaluator by default, so it runs without external solvers.

Smoke Run

python examples/airfoil/run_airfoil_dflow.py --smoke

Full Config Run

flowdesign generate --config configs/airfoil/dflow.yaml

Python API

from flowdesign.registry import load_config, build_problem_from_config, build_strategy_from_config

config = load_config("configs/airfoil/dflow.yaml")
problem = build_problem_from_config(config)
strategy = build_strategy_from_config(config)
result = strategy.run(problem)

print(result.best(feasible_only=True))

Replace the dummy evaluator with a NeuralFoil or XFoil adapter when you need a higher-fidelity aerodynamic model.