Tensor.H 10.3 KB
 OpenFOAM-admin committed Apr 15, 2008 1 2 3 4 ``````/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | `````` OpenFOAM bot committed Oct 31, 2019 5 `````` \\ / A nd | www.openfoam.com `````` OpenFOAM bot committed Feb 06, 2019 6 7 `````` \\/ M anipulation | ------------------------------------------------------------------------------- `````` OpenFOAM bot committed Oct 31, 2019 8 `````` Copyright (C) 2011-2016 OpenFOAM Foundation `````` Mark Olesen committed Jan 30, 2020 9 `````` Copyright (C) 2018-2020 OpenCFD Ltd. `````` OpenFOAM-admin committed Apr 15, 2008 10 11 12 13 ``````------------------------------------------------------------------------------- License This file is part of OpenFOAM. `````` Mark Olesen committed Mar 29, 2010 14 15 16 17 `````` OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. `````` OpenFOAM-admin committed Apr 15, 2008 18 19 20 21 22 23 24 `````` OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License `````` Mark Olesen committed Mar 29, 2010 25 `````` along with OpenFOAM. If not, see . `````` OpenFOAM-admin committed Apr 15, 2008 26 27 28 29 30 `````` Class Foam::Tensor Description `````` Kutalmis Bercin committed Feb 18, 2020 31 32 33 34 `````` A templated (3 x 3) tensor of objects of \ derived from MatrixSpace. See also Test-Tensor.C `````` OpenFOAM-admin committed Apr 15, 2008 35 36 37 38 `````` SourceFiles TensorI.H `````` Henry Weller committed Jun 17, 2016 39 ``````See also `````` Henry Weller committed Mar 12, 2016 40 41 42 `````` Foam::MatrixSpace Foam::Vector `````` OpenFOAM-admin committed Apr 15, 2008 43 44 45 46 47 ``````\*---------------------------------------------------------------------------*/ #ifndef Tensor_H #define Tensor_H `````` Henry Weller committed Mar 12, 2016 48 ``````#include "MatrixSpace.H" `````` OpenFOAM-admin committed Apr 15, 2008 49 50 51 52 53 54 55 56 ``````#include "Vector.H" #include "SphericalTensor.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { `````` Mark Olesen committed Apr 04, 2019 57 58 59 ``````// Forward Declarations template class SymmTensor; `````` Henry committed Dec 28, 2011 60 `````` `````` OpenFOAM-admin committed Apr 15, 2008 61 62 63 64 ``````/*---------------------------------------------------------------------------*\ Class Tensor Declaration \*---------------------------------------------------------------------------*/ `````` Henry committed Feb 21, 2013 65 ``````template `````` OpenFOAM-admin committed Apr 15, 2008 66 67 ``````class Tensor : `````` Henry Weller committed Mar 12, 2016 68 `````` public MatrixSpace, Cmpt, 3, 3> `````` OpenFOAM-admin committed Apr 15, 2008 69 70 71 ``````{ public: `````` Mark Olesen committed Jan 30, 2020 72 73 74 75 `````` // Typedefs //- Equivalent type of labels used for valid component indexing typedef Tensor