Pipe Network Assignment: Computation in Engineering I
Pipe Network Assignment: Computation in Engineering I
Computation in Engineering I 1
Chair for Computation in Engineering
Technical University of Munich
Computation in Engineering I 5
Chair for Computation in Engineering
Technical University of Munich
solve linear equation system to get head vector h 4. Solve linear system
return q
Computation in Engineering I 7
Chair for Computation in Engineering
Technical University of Munich
int numberOfValues;
infile >> numberOfValues;
std::vector<double> data;
data.reserve( numberOfValues );
data.push_back( value );
}
Computation in Engineering I 9
Chair for Computation in Engineering
Technical University of Munich
* *
Node Tube
Node( x : double, y : double, Tube( node1 : Node*, node2 : Node*,
flow : double, id : int ) diameter : double )
2
x( ) const : double length( ) const : double
y( ) const : double permeability( ) const : double
flow( ) const : double node1( ) const : const Node*
id( ) const : int node2( ) const : const Node*
... ...
Computation in Engineering I 10
Chair for Computation in Engineering
Technical University of Munich