programming

Is Ly=2 hard-coded into channelflow?

Evangelos Siminos, 2009-02-10 07:07

Discussion

John F. Gibson, 2009-02-10 07:15

No. The size of the box is specified with four parameters, Lx,Lz,a,b, and then a ⇐ y ⇐ b and Ly = b-a. FlowField initialization looks like this

 FlowField u(Nx,Ny,Nz,Nd,Lx,Lz,a,b);

Nd is the vector dimension: 3 for velocity fields, 1 for pressure, 9 for stress tensor, etc. Most codes would specify Ly and set the bounds on y to be -Ly/2 ⇐ y ⇐ Ly/2; channelflow uses [a,b] to allow representation of fields on subdomains of other fields, like the boundary layer.

John

 
programming/is_ly_2_hard-coded_into_channelflow.txt · Last modified: 2010-02-02 07:55 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki