Skip to content

Commit

Permalink
docs(fluids): Fused/sequential data-driven SGS model
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwrigh committed Oct 3, 2023
1 parent 2e79fcb commit e6e17ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/fluids/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,11 @@ For the Density Current, Channel, and Blasius problems, the following common com
- `./dd_sgs_parameters`
- string

* - `-sgs_model_dd_use_fused`
- Whether to use "fused" mode for data-driven model evaluation
- `true`
- boolean

* - `-diff_filter_monitor`
- Enable differential filter TSMonitor
- `false`
Expand Down
12 changes: 12 additions & 0 deletions examples/fluids/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,18 @@ This is done to keep consistent with legacy file compatibility.
The current data-driven model parameters are not accurate and are for regression testing only.
:::
##### Data-driven Model Using External Libraries
There are two different modes for using the data-driven model: fused and sequential.
In fused mode, the input processing, model inference, and output handling were all done in a single CeedOperator.
Conversely, sequential mode has separate function calls/CeedOperators for input creation, model inference, and output handling.
By separating the three steps to the model evaluation, the sequential mode allows for functions calling external libraries to be used for the model inference step.
This however is slower than the fused kernel, but this requires a native libCEED inference implementation.
To use the fused mode, set `-sgs_model_dd_use_fused true`.
To use the sequential mode, set the same flag to `false`.
(problem-advection)=
### Differential Filtering
Expand Down

0 comments on commit e6e17ec

Please sign in to comment.