5 void Mass( libMesh::DenseMatrix<libMesh::Number>&
Mass,
7 const std::vector<std::vector<libMesh::Real> >& phi,
8 const unsigned int n_dofs,
9 const std::vector<libMesh::Real>& JxW,
10 const libMesh::Number cte
13 for (
unsigned int iii=0; iii< n_dofs; iii++)
15 for (
unsigned int jjj=0; jjj< n_dofs; jjj++)
17 Mass(iii,jjj) += cte*JxW[qp]*phi[iii][qp]*phi[jjj][qp];
25 void L2_Coupling( libMesh::DenseMatrix<libMesh::Number>& Coupl,
27 const std::vector<std::vector<libMesh::Real> >& phi_sysA,
28 const std::vector<std::vector<libMesh::Real> >& phi_sysB,
29 const unsigned int n_dofs_sysA,
30 const unsigned int n_dofs_sysB,
31 const std::vector<libMesh::Real>& JxW,
32 const libMesh::Number cte
35 for (
unsigned int iii=0; iii< n_dofs_sysA; iii++)
37 for (
unsigned int jjj=0; jjj< n_dofs_sysB; jjj++)
39 Coupl(iii,jjj) += cte*JxW[qp]*phi_sysA[iii][qp]*phi_sysB[jjj][qp];
44 void L2_Coupling( libMesh::DenseSubMatrix<libMesh::Number>& Coupl,
46 const std::vector<std::vector<libMesh::Real> >& phi_sysA,
47 const std::vector<std::vector<libMesh::Real> >& phi_sysB,
48 const unsigned int n_dofs_sysA,
49 const unsigned int n_dofs_sysB,
50 const std::vector<libMesh::Real>& JxW,
51 const libMesh::Number cte
54 for (
unsigned int iii=0; iii< n_dofs_sysA; iii++)
56 for (
unsigned int jjj=0; jjj< n_dofs_sysB; jjj++)
58 Coupl(iii,jjj) += cte*JxW[qp]*phi_sysA[iii][qp]*phi_sysB[jjj][qp];
67 unsigned int n_components_A,
68 unsigned int n_components_B,
69 const std::vector<std::vector<libMesh::RealGradient> >& dphi_sysA,
70 const std::vector<std::vector<libMesh::RealGradient> >& dphi_sysB,
71 const unsigned int n_dofs_sysA,
72 const unsigned int n_dofs_sysB,
73 const std::vector<libMesh::Real>& JxW,
74 const libMesh::Number cte
83 for (
unsigned int iii=0; iii < n_dofs_sysA; iii++)
85 const libMesh::RealGradient& dphy_sysA_grad = dphi_sysA[iii][qp];
86 for (
unsigned int jjj=0; jjj < n_dofs_sysB; jjj++)
88 const libMesh::RealGradient& dphy_sysB_grad = dphi_sysB[jjj][qp];
89 for(
unsigned int C_j=0; C_j<n_components_A; C_j++)
92 for(
unsigned int C_l=0; C_l<n_components_B; C_l++)
96 Coupl(iii,jjj) += cte*JW* dphy_sysA_grad(C_j)*dphy_sysB_grad(C_l) * ( d_ik * d_jl + d_il * d_jk ) ;
int kronecker_delta(unsigned int i, unsigned int j)