next up previous contents
Next: ReadCurve Up: io.C Previous: posscan

ReadBCs

input: FILE *fp, Element_List *U

output: Bndry *bndry_list

Description: This function reads boundary information for a spectral element field and sets up the appropriate boundary structures. The following boundary conditions are currently recognized:



Flag Type Field 1 Field 2 Field 3
V Velocity U-velocity V-Velocity W-Velocity
W Wall = 0 = 0 = 0
v v U(x,y,z) V(x,y,z) W(x,y,z)
F Flux U' = f1 V' = f2 W' = f3
f flux U'(x,y,z) V'(x,y,z) W'(x,y,z)
O Outflow U' = 0 V' = 0 W' = 0
E Element w/ ID w/ EDGE  
P Periodic w/ ID w/ EDGE  


NOTES: - On the first call, this function records the beginning of the BC

section. Subsequent calls will re-read the BC's and assign data

from the next available parameter. There should be a total of DIM

parameters available (DIM $\leq$ 3). - For boundaries with a given function of (x,y,z), the first line

following is taken to be U(x,y,z), the second is V(x,y,z), etc.

Here is an example (element 1, edge 1):



1 1 v 0.0 0.0 0.0

ux = (1 - y2)*sin(t)

uy = (1 - y2)*cos(t) uz = 0.

1 2 E 2.0 1.0 0.0

The "=" MUST be present, and the function is defined by the string

to the right of it. - NO TIME DEPENDENT BOUNDARY CONDITIONS. - This routine will read any type of boundary conditions, FLUID or

otherwise, as long as the file is positioned correctly.


next up previous contents
Next: ReadCurve Up: io.C Previous: posscan
Guang Lin
2001-03-08