Algorithm 1 Solve a heat transfer problem within a heterogeneous domain. |
Require: define the problem (heterogeneous domain and boundary conditions) Ensure: a coarse mesh and an appropriate refinement of each coarse element for n=1 to do {loop over coarse mesh elements} for m=1 to M do {loop over n-th element shape functions} solve local problem (5) in the n-th element for the m-th shape function end for compute and for the n-th element end for solve the coarse mesh problem using the effective matrices and vectors |