1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 solidTractionFvPatchVectorField
28 Fixed traction boundary condition for solid foam solvers.
29 Suitable for for total strain or incremental strain total or
30 updated Lagrangian approaches.
31 Contains thermal-elastic, plastic, non-linear terms if required.
32 And non-orthogonal correction.
38 solidTractionFvPatchVectorField.C
40 \*---------------------------------------------------------------------------*/
42 #ifndef solidTractionFvPatchVectorField_H
43 #define solidTractionFvPatchVectorField_H
45 #include "fvPatchFields.H"
46 #include "fixedGradientFvPatchFields.H"
47 #include "nonLinearGeometry.H"
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 /*---------------------------------------------------------------------------*\
56 Class solidTractionFvPatchVectorField Declaration
57 \*---------------------------------------------------------------------------*/
59 class solidTractionFvPatchVectorField
61 public fixedGradientFvPatchVectorField
66 //- Name of the displacement field
70 vectorField traction_;
73 scalarField pressure_;
75 //- Type of geometrical non-linearity
76 nonLinearGeometry::nonLinearType nonLinear_;
78 //- if it is an orthropic solver
84 //- Runtime type information
85 TypeName("solidTraction");
90 //- Construct from patch and internal field
91 solidTractionFvPatchVectorField
94 const DimensionedField<vector, volMesh>&
97 //- Construct from patch, internal field and dictionary
98 solidTractionFvPatchVectorField
101 const DimensionedField<vector, volMesh>&,
105 //- Construct by mapping given
106 // solidTractionFvPatchVectorField onto a new patch
107 solidTractionFvPatchVectorField
109 const solidTractionFvPatchVectorField&,
111 const DimensionedField<vector, volMesh>&,
112 const fvPatchFieldMapper&
115 //- Construct as copy
116 solidTractionFvPatchVectorField
118 const solidTractionFvPatchVectorField&
121 //- Construct and return a clone
122 virtual tmp<fvPatchVectorField> clone() const
124 return tmp<fvPatchVectorField>
126 new solidTractionFvPatchVectorField(*this)
130 //- Construct as copy setting internal field reference
131 solidTractionFvPatchVectorField
133 const solidTractionFvPatchVectorField&,
134 const DimensionedField<vector, volMesh>&
137 //- Construct and return a clone setting internal field reference
138 virtual tmp<fvPatchVectorField> clone
140 const DimensionedField<vector, volMesh>& iF
143 return tmp<fvPatchVectorField>
145 new solidTractionFvPatchVectorField(*this, iF)
155 virtual const vectorField& traction() const
160 virtual vectorField& traction()
165 virtual const scalarField& pressure() const
170 virtual scalarField& pressure()
175 virtual word& fieldName()
180 const nonLinearGeometry::nonLinearType& nonLinear() const
185 nonLinearGeometry::nonLinearType& nonLinear()
193 //- Map (and resize as needed) from self given a mapping object
196 const fvPatchFieldMapper&
199 //- Reverse map the given fvPatchField onto this fvPatchField
202 const fvPatchVectorField&,
207 //- Update the coefficients associated with the patch field
208 virtual void updateCoeffs();
210 //- Evaluate the patch field
211 virtual void evaluate
213 const Pstream::commsTypes commsType=Pstream::blocking
217 virtual void write(Ostream&) const;
221 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
223 } // End namespace Foam
225 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
229 // ************************************************************************* //