diff options
Diffstat (limited to 'src/Lagrange-tensor-product/3d.maple')
-rw-r--r-- | src/Lagrange-tensor-product/3d.maple | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/Lagrange-tensor-product/3d.maple b/src/Lagrange-tensor-product/3d.maple index 5d44fb2..8bc1d2c 100644 --- a/src/Lagrange-tensor-product/3d.maple +++ b/src/Lagrange-tensor-product/3d.maple @@ -246,3 +246,73 @@ print_coeffs__lc_of_data(%, "coeffs_dzz->coeff_", "fp", "3d.coeffs/3d.cube.order4.smooth0/coeffs-dzz.compute.c"); ################################################################################ + +# +# 3d, cube, order=5, smoothing=0 (size=6) +# + +# interpolating polynomial +interp_3d_cube_order5_smooth0 + := Lagrange_polynomial_interpolant(fn_3d_order5, coeffs_list_3d_order5, + coords_list_3d, posn_list_3d_size6); + +# I +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_I->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-I.compute.c"); + +# d/dx +simplify( diff(interp_3d_cube_order5_smooth0,x) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dx->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dx.compute.c"); + +# d/dy +simplify( diff(interp_3d_cube_order5_smooth0,y) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dy->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dy.compute.c"); + +# d/dz +simplify( diff(interp_3d_cube_order5_smooth0,z) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dz->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dz.compute.c"); + +# d^2/dx^2 +simplify( diff(interp_3d_cube_order5_smooth0,x,x) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dxx->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dxx.compute.c"); + +# d^2/dxdy +simplify( diff(interp_3d_cube_order5_smooth0,x,y) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dxy->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dxy.compute.c"); + +# d^2/dxdz +simplify( diff(interp_3d_cube_order5_smooth0,x,z) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dxz->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dxz.compute.c"); + +# d^2/dy^2 +simplify( diff(interp_3d_cube_order5_smooth0,y,y) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dyy->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dyy.compute.c"); + +# d^2/dydz +simplify( diff(interp_3d_cube_order5_smooth0,y,z) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dyz->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dyz.compute.c"); + +# d^2/dz^2 +simplify( diff(interp_3d_cube_order5_smooth0,z,z) ); +coeffs_as_lc_of_data(%, posn_list_3d_size6); +print_coeffs__lc_of_data(%, "coeffs_dzz->coeff_", "fp", + "3d.coeffs/3d.cube.order5.smooth0/coeffs-dzz.compute.c"); + +################################################################################ |