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
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 |
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 |
Name |
Unit |
Comment |
Rho |
m |
Rho |
U |
m/s |
U |
RhoB |
1 |
RhoB |
UB |
1 |
UB |
W |
1 |
W |
WB |
1 |
WB |
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 |
Group |
Types |
BOUNDARY |
EPressure, EVelocity, Solid, Wall, WPressure, WVelocity |
COLLISION |
BGK, MRT |
OBJECTIVE |
Obj1 |
SETTINGZONE |
DefaultZone |
Name |
Access pattern |
Comment |
f0 |
|
f0 |
f1 |
|
f1 |
f2 |
|
f2 |
f3 |
|
f3 |
f4 |
|
f4 |
f5 |
|
f5 |
f6 |
|
f6 |
f7 |
|
f7 |
f8 |
|
f8 |
w |
|
w |
Name |
Field |
Pulling field from |
Comment |
f0 |
f0 |
|
f0 |
f1 |
f1 |
|
f1 |
f2 |
f2 |
|
f2 |
f3 |
f3 |
|
f3 |
f4 |
f4 |
|
f4 |
f5 |
f5 |
|
f5 |
f6 |
f6 |
|
f6 |
f7 |
f7 |
|
f7 |
f8 |
f8 |
|
f8 |
w |
w |
|
w |
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 |
Name |
Stages |
Iteration |
BaseIteration |
Init |
BaseInit |