1: |
Define the adaptive quadrature rule as a composite Gauss rule such that |
|
|
in which typically
|
2: |
procedure Velocity Interpolation
|
▹ Interpolate and project in the FE space |
3: |
Compute the components of , for each , as |
|
|
|
4: |
Set up the projection right-hand side with entries |
|
5: |
Solve for
|
▹ is the standard mass matrix |
6: |
return
|
▹ vector of FE velocity coefficients |
7: |
end procedure
|
8: |
procedure Force Spreading
|
9: |
Calculate with |
|
10: |
Solve for
|
▹ is the standard mass matrix |
11: |
Define
|
12: |
Spread with into with |
|
|
|
13: |
return
|
▹ Cartesian grid force representation |
14: |
end procedure
|