Skip to content

d2q9 ShanChen

Description

d2q9_ShanChen

Details

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

Zonal Settings

Name Comment
VelocityX inlet/outlet/init velocity
VelocityY inlet/outlet/init velocity
GravitationX body/external acceleration
GravitationY body/external acceleration
Density Density

Global Settings

Name Derived Comment
omega 1.0/(3*viscosity+0.5) inverse of relaxation time
viscosity kinematic viscosity
G_ff fluid-fluid interaction strength
G_sf solid-fluid interaction strength
Threshold Parameters threshold

Exported Quantities (VTK, etc)

Name Unit Comment
U m/s U
Rho kg/m3 Rho
Psi 1 Psi

Exported Global Integrals (CSV, etc)

Name Unit Comment
Objective 1 Objective function

Node Types

Group Types
BOUNDARY MovingWall, Solid, Wall
COLLISION MRT
SETTINGZONE DefaultZone

Solved fields

Name Access pattern Comment
f[0] stencil f[0]
f[1] stencil f[1]
f[2] stencil f[2]
f[3] stencil f[3]
f[4] stencil f[4]
f[5] stencil f[5]
f[6] stencil f[6]
f[7] stencil f[7]
f[8] stencil f[8]
rho stencil rho
psi stencil psi
neighbour_type stencil neighbour_type

Densities - default accessors

Name Field Pulling field from Comment
f[0] f[0] stencil f[0]
f[1] f[1] stencil f[1]
f[2] f[2] stencil f[2]
f[3] f[3] stencil f[3]
f[4] f[4] stencil f[4]
f[5] f[5] stencil f[5]
f[6] f[6] stencil f[6]
f[7] f[7] stencil f[7]
f[8] f[8] stencil f[8]
rho rho stencil rho

Action stages

Name Main procedure Preloaded densities Pushed fields
BaseInit Init f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], rho f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], rho, neighbour_type
BaseIteration Run f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], rho f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], rho, neighbour_type
PsiIteration calcPsi f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7], f[8], rho psi

Actions

Name Stages
Init BaseInit, PsiIteration
Iteration BaseIteration, PsiIteration