Next: , Previous: , Up: Top   [Contents]


7 How to develop a new model ?

To tell Bil to account for a new model, you just need to create a new file, e.g. my_model.c, in the folder ModelFiles and add the basename of this file, namely my_model, to the list of the available models found in ListOfModels.inc. This model will be taken into account automatically the next time binary files will be created.

To help you in creating this new file, it is recommended to learn from already existing files. This file should contain at least the 11 methods of the Model class-like structure. These methods are listed in the table below.


methoddescription
SetModelPropSet the model properties
ReadMatPropRead the material properties
PrintModelPropPrint the model properties
DefineElementPropDefine some properties of the element.
ComputeInitialStateCompute the initial state
ComputeExplicitTermsCompute the explicit terms
ComputeMatrixCompute the matrix
ComputeResiduCompute the residu
ComputeLoadsCompute the loads
ComputeImplicitTermsCompute the implicit terms
ComputeOutputsCompute the outputs