Skip to content

Sw

Description

Lattice Boltzmann Method for Shallow Water equation on a D2Q9 lattice. Model has adjoint capabilities for unsteady optimization.

Details

Model description files files for this model: Dynamics.c Dynamics.R

Zonal Settings

Name Comment
Height Height
PressDiffInObj Weight of [pressure loss] in objective
TotalDiffInObj Weight of [total variation of velocity] in objective
MaterialInObj Weight of [total material] in objective
EnergyGainInObj Weight of [pressure loss] in objective

Global Settings

Name Derived Comment
omega 1.0/(3*nu + 0.5) one over relaxation time
nu viscosity
InletVelocity inlet velocity
InletPressure inlet pressure
InletDensity 1.0+InletPressure/3 inlet density
Gravity inlet density
SolidH inlet density
EnergySink inlet density
Descent Optimization Descent
GradientSmooth Gradient smoothing in OptSolve
Threshold Parameters threshold

Exported Quantities (VTK, etc)

Name Unit Comment
Rho m Rho
U m/s U
RhoB 1 RhoB
UB 1 UB
W 1 W
WB 1 WB

Exported Global Integrals (CSV, etc)

Name Unit Comment
PressDiff 1 pressure loss
TotalDiff 1 total variation of velocity
Material 1 total material
EnergyGain 1 pressure loss
omega_D 1 Gradient of objective with respect to [one over relaxation time]
nu_D 1 Gradient of objective with respect to [viscosity]
InletVelocity_D 1 Gradient of objective with respect to [inlet velocity]
InletPressure_D 1 Gradient of objective with respect to [inlet pressure]
InletDensity_D 1 Gradient of objective with respect to [inlet density]
Gravity_D 1 Gradient of objective with respect to [inlet density]
SolidH_D 1 Gradient of objective with respect to [inlet density]
EnergySink_D 1 Gradient of objective with respect to [inlet density]
AdjointRes 1 square L2 norm of adjoint change
Objective 1 Objective function

Node Types

Group Types
BOUNDARY EPressure, EVelocity, Solid, Wall, WPressure, WVelocity
COLLISION BGK, MRT
OBJECTIVE Obj1
SETTINGZONE DefaultZone

Solved fields

Name Access pattern Comment
f0 stencil f0
f1 stencil f1
f2 stencil f2
f3 stencil f3
f4 stencil f4
f5 stencil f5
f6 stencil f6
f7 stencil f7
f8 stencil f8
w stencil w

Densities - default accessors

Name Field Pulling field from Comment
f0 f0 stencil f0
f1 f1 stencil f1
f2 f2 stencil f2
f3 f3 stencil f3
f4 f4 stencil f4
f5 f5 stencil f5
f6 f6 stencil f6
f7 f7 stencil f7
f8 f8 stencil f8
w w stencil w

Action stages

Name Main procedure Preloaded densities Pushed fields
BaseIteration Run f0, f1, f2, f3, f4, f5, f6, f7, f8, w f0, f1, f2, f3, f4, f5, f6, f7, f8, w
BaseInit Init none f0, f1, f2, f3, f4, f5, f6, f7, f8, w

Actions

Name Stages
Iteration BaseIteration
Init BaseInit