CommitLineData
42cf5bc1 1// Created on: 1998-11-10
2// Created by: Igor FEOKTISTOV
3// Copyright (c) 1998-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <Standard_Integer.hxx>
25#include <math_FunctionSet.hxx>
26#include <Standard_Boolean.hxx>
27#include <math_Vector.hxx>
28class PLib_Base;
29class Standard_ConstructionError;
30
31
32//! this class describes the functions needed for
33//! calculating matrix elements of RefMatrix for linear
34//! criteriums (Tension, Flexsion and Jerk) by Gauss integration.
35//! Each function from set gives value Pi(u)'*Pj(u)' or
36//! Pi(u)''*Pj(u)'' or Pi(u)'''*Pj(u)''' for each i and j,
37//! where Pi(u) is i-th basis function of expansion and
38//! (') means derivative.
39class FEmTool_ElementsOfRefMatrix : public math_FunctionSet
40{
41public:
42
43 DEFINE_STANDARD_ALLOC
44
45
46 Standard_EXPORT FEmTool_ElementsOfRefMatrix(const Handle(PLib_Base)& TheBase, const Standard_Integer DerOrder);
47
48 //! returns the number of variables of the function.
49 //! It is supposed that NbVariables = 1.
50 Standard_EXPORT Standard_Integer NbVariables() const;
51
52 //! returns the number of equations of the function.
53 Standard_EXPORT Standard_Integer NbEquations() const;
54
55 //! computes the values <F> of the functions for the
56 //! variable <X>.
57 //! returns True if the computation was done successfully,
58 //! False otherwise.
59 //! F contains results only for i<=j in following order:
60 //! P0*P0, P0*P1, P0*P2... P1*P1, P1*P2,... (upper triangle of
61 //! matrix {PiPj})
62 Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
63
64
65
66
67protected:
68
69
70
71
72
73private:
74
75
76
77 Handle(PLib_Base) myBase;
78 Standard_Integer myDerOrder;
79 Standard_Integer myNbEquations;
80
81
82};
83
84
85
86
87
88
89