#include <stdio.h>
#include <math.h>
#include "moc_kernel.h"
#include "moc_gasdynamic.h"
#include "moc_wall.h"
#include "moc_unitproc.h"
Defines | |
| #define | MAX_NEAR 30 |
| #define | MAX_NEAR 30 |
Functions | |
| int | InteriorNode (int node1, int node2, int node4) |
| int | InsertNode (int node1, int node2, int node4, double alpha) |
| int | CMinusWallNode (int iw, int node1, int node4) |
| int | CPlusWallNode (int iw, int node2, int node4) |
| int | CPlusFreeBndyNode (int node0, int node2, int node4) |
| int | CMinusFreeBndyNode (int node0, int node1, int node4) |
| int | AddStreamNode (int node0, int node1, int node2, int node4, int test_only) |
| int | StepStreamNode (int node0, int node4, double dL) |
| int | InterpolateNode (double x_point, double y_point, double R, int node4) |
Variables | |
| int | max_iteration = 15 |
| double | position_tolerance = 1.0e-5 |
Basic unit processes implemented in C. Each function computes the data for a new node based on information from other nodes. The functions are computationally intensive and access the internals of the node data structure directly. Thus, we believe that the implementation is faster and tidier than a pure Tcl implementation -- at least we hope so.
|
||||||||||||||||||||||||
|
Purpose: Calculate a new streamline node, extending the streamline to the line joining nodeA and nodeB. |
|
||||||||||||||||
|
Purpose: Calculate a free-boundary point from one point (node0) already on the boundary and one point (node1) on a C- characteristic. |
|
||||||||||||||||
|
Purpose: Calculate a wall point from one initial (C-) point. |
|
||||||||||||||||
|
Purpose: Calculate a free-boundary point from one point (node0) already on the boundary and one point (node2) on a C+ characteristic. |
|
||||||||||||||||
|
Purpose: Calculate a wall point from one upstream (C+) point. |
|
||||||||||||||||||||
|
Purpose: Insert a node (node4) in between two initial nodes (node1 and node2). |
|
||||||||||||||||
|
Purpose: Calculate an interior point from two initial points. |
|
||||||||||||||||||||
|
Purpose: Locate a new node at coordinates (x,y), interpolating the node's properties from other near-by nodes. |
|
||||||||||||||||
|
Purpose: Calculate a new streamline node, extending the streamline by length dL |
|
|
Most of these functions involve some iteration. The parameters for convergence check are: |
1.4.4