Examples

Examples using the M-Star CFD Pre API

Simple Case

Simple example using the M-Star API to generate a M-Star CFD model .msb file

Python Parameter Sweep

Generate a parameter sweep using Python

Workflow Parameter Sweep

Generate a parameter sweep using built-in M-Star CFD Workflow objects

Scripted CAD pre-processing with build123d

Use external CAD processor (build123d) to generate geometry for a simple agitated vessel.

Sweep over CAD files

Sweep over CAD files and generate case files

Sweep over CAD files + 1D parameter sweep

Sweep over CAD files and perform 1D parameter sweep

Optimize Blend Time

Use Python Scipy optimizers with M-Star CFD

Mixing Tank

Perform all steps in CFD workflow: Pre-processing, solving, and post-processing from a single Python script.

Command Line Example

Develop a custom command line interface to generate case files