DEVELOPMENT OF FEM MODELING TOOL BASED ON A CONSTRAINT EQUATION