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 timeVaryingSolidTractionFvPatchVectorField
28 Time-varying 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.
34 Example of the boundary condition specification:
38 type timeVaryingSolidTraction;
41 fileName "$FOAM_CASE/time-series";
42 outOfBounds clamp; // (error|warn|clamp|repeat)
50 timeVaryingSolidTractionFvPatchVectorField.C
52 \*---------------------------------------------------------------------------*/
54 #ifndef timeVaryingSolidTractionFvPatchVectorField_H
55 #define timeVaryingSolidTractionFvPatchVectorField_H
57 #include "fvPatchFields.H"
58 #include "solidTractionFvPatchVectorField.H"
59 #include "interpolationTable.H"
62 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
67 /*---------------------------------------------------------------------------*\
68 Class timeVaryingSolidTractionFvPatchVectorField Declaration
69 \*---------------------------------------------------------------------------*/
71 class timeVaryingSolidTractionFvPatchVectorField
73 public solidTractionFvPatchVectorField
78 //- The time series being used, including the bounding treatment
79 interpolationTable<vector> timeSeries_;
84 //- Runtime type information
85 TypeName("timeVaryingSolidTraction");
90 //- Construct from patch and internal field
91 timeVaryingSolidTractionFvPatchVectorField
94 const DimensionedField<vector, volMesh>&
97 //- Construct from patch, internal field and dictionary
98 timeVaryingSolidTractionFvPatchVectorField
101 const DimensionedField<vector, volMesh>&,
105 //- Construct by mapping given
106 // timeVaryingSolidTractionFvPatchVectorField onto a new patch
107 timeVaryingSolidTractionFvPatchVectorField
109 const timeVaryingSolidTractionFvPatchVectorField&,
111 const DimensionedField<vector, volMesh>&,
112 const fvPatchFieldMapper&
115 //- Construct as copy
116 timeVaryingSolidTractionFvPatchVectorField
118 const timeVaryingSolidTractionFvPatchVectorField&
121 //- Construct and return a clone
122 virtual tmp<fvPatchVectorField> clone() const
124 return tmp<fvPatchVectorField>
126 new timeVaryingSolidTractionFvPatchVectorField(*this)
130 //- Construct as copy setting internal field reference
131 timeVaryingSolidTractionFvPatchVectorField
133 const timeVaryingSolidTractionFvPatchVectorField&,
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 timeVaryingSolidTractionFvPatchVectorField(*this, iF)
154 //- Return the time series used
155 const interpolationTable<vector>& timeSeries() const
162 //- Map (and resize as needed) from self given a mapping object
165 const fvPatchFieldMapper&
168 //- Reverse map the given fvPatchField onto this fvPatchField
171 const fvPatchVectorField&,
176 //- Update the coefficients associated with the patch field
177 virtual void updateCoeffs();
180 virtual void write(Ostream&) const;
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
186 } // End namespace Foam
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
192 // ************************************************************************* //