#include <getfem_modeling.h>
Inherits getfem::mdbrick_abstract_common_base.
Inherited by getfem::mdbrick_abstract_linear_pde< MODEL_STATE >, getfem::mdbrick_constraint< MODEL_STATE >, getfem::mdbrick_Coulomb_friction< MODEL_STATE >, getfem::mdbrick_dynamic< MODEL_STATE >, getfem::mdbrick_generalized_Dirichlet< MODEL_STATE >, getfem::mdbrick_isotropic_linearized_plate< MODEL_STATE >, getfem::mdbrick_linear_incomp< MODEL_STATE >, getfem::mdbrick_mixed_isotropic_linearized_plate< MODEL_STATE >, getfem::mdbrick_navier_stokes< MODEL_STATE >, getfem::mdbrick_neumann_KL_term< MODEL_STATE >, getfem::mdbrick_nonlinear_elasticity< MODEL_STATE >, getfem::mdbrick_nonlinear_incomp< MODEL_STATE >, getfem::mdbrick_normal_derivative_source_term< MODEL_STATE >, getfem::mdbrick_normal_source_term< MODEL_STATE >, getfem::mdbrick_plasticity< MODEL_STATE >, getfem::mdbrick_plate_clamped_support< MODEL_STATE >, getfem::mdbrick_plate_closing< MODEL_STATE >, getfem::mdbrick_plate_simple_support< MODEL_STATE >, getfem::mdbrick_plate_source_term< MODEL_STATE >, getfem::mdbrick_QU_term< MODEL_STATE >, and getfem::mdbrick_source_term< MODEL_STATE >.
Public Member Functions | |
| void | compute_tangent_matrix (MODEL_STATE &MS, size_type i0=0, size_type j0=0) |
| update (if necessary) the tangent matrix stored. | |
Abstract model brick.
Requirements for a model brick :
A model brick is either a fondamental brick (like linearized elasticity brick, platicity brick ...) or a modifier brick which refer to a sub brick.
A new brick should define:
proper_update() , which is called each time the brick should update itself. This function is expected to assign the correct values to proper_nb_dof (the nb of new dof introduced by this brick), proper_nb_constraints and proper_mixed_variables.do_compute_tangent_matrix(MS, i0, j0) . This function should compute its own part of the tangent and constraint matrices (i0 and j0 are the shifts in the matrices stored in the model_state MS)do_compute_residual(MS, i0, j0) . Same as above for the residu vector stored in MS. Definition at line 465 of file getfem_modeling.h.
| void getfem::mdbrick_abstract< MODEL_STATE >::compute_tangent_matrix | ( | MODEL_STATE & | MS, | |
| size_type | i0 = 0, |
|||
| size_type | j0 = 0 | |||
| ) | [inline] |
update (if necessary) the tangent matrix stored.
| MS | the model state (which contains the tangent matrix) | |
| i0,j0 | position at which the tangent matrix is to be written in MS.tangent_matrix |
Definition at line 476 of file getfem_modeling.h.
1.6.1