tractionDisplacementFvPatchVectorField.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef tractionDisplacementFvPatchVectorField_H
00038 #define tractionDisplacementFvPatchVectorField_H
00039
00040 #include "fvPatchFields.H"
00041 #include "fixedGradientFvPatchFields.H"
00042
00043
00044
00045 namespace Foam
00046 {
00047
00048
00049
00050
00051
00052 class tractionDisplacementFvPatchVectorField
00053 :
00054 public fixedGradientFvPatchVectorField
00055 {
00056
00057
00058
00059 vectorField traction_;
00060 scalarField pressure_;
00061
00062
00063 public:
00064
00065
00066 TypeName("tractionDisplacement");
00067
00068
00069
00070
00071
00072 tractionDisplacementFvPatchVectorField
00073 (
00074 const fvPatch&,
00075 const DimensionedField<vector, volMesh>&
00076 );
00077
00078
00079 tractionDisplacementFvPatchVectorField
00080 (
00081 const fvPatch&,
00082 const DimensionedField<vector, volMesh>&,
00083 const dictionary&
00084 );
00085
00086
00087
00088 tractionDisplacementFvPatchVectorField
00089 (
00090 const tractionDisplacementFvPatchVectorField&,
00091 const fvPatch&,
00092 const DimensionedField<vector, volMesh>&,
00093 const fvPatchFieldMapper&
00094 );
00095
00096
00097 tractionDisplacementFvPatchVectorField
00098 (
00099 const tractionDisplacementFvPatchVectorField&
00100 );
00101
00102
00103 virtual tmp<fvPatchVectorField> clone() const
00104 {
00105 return tmp<fvPatchVectorField>
00106 (
00107 new tractionDisplacementFvPatchVectorField(*this)
00108 );
00109 }
00110
00111
00112 tractionDisplacementFvPatchVectorField
00113 (
00114 const tractionDisplacementFvPatchVectorField&,
00115 const DimensionedField<vector, volMesh>&
00116 );
00117
00118
00119 virtual tmp<fvPatchVectorField> clone
00120 (
00121 const DimensionedField<vector, volMesh>& iF
00122 ) const
00123 {
00124 return tmp<fvPatchVectorField>
00125 (
00126 new tractionDisplacementFvPatchVectorField(*this, iF)
00127 );
00128 }
00129
00130
00131
00132
00133
00134
00135 virtual const vectorField& traction() const
00136 {
00137 return traction_;
00138 }
00139
00140 virtual vectorField& traction()
00141 {
00142 return traction_;
00143 }
00144
00145 virtual const scalarField& pressure() const
00146 {
00147 return pressure_;
00148 }
00149
00150 virtual scalarField& pressure()
00151 {
00152 return pressure_;
00153 }
00154
00155
00156
00157
00158
00159 virtual void autoMap
00160 (
00161 const fvPatchFieldMapper&
00162 );
00163
00164
00165 virtual void rmap
00166 (
00167 const fvPatchVectorField&,
00168 const labelList&
00169 );
00170
00171
00172
00173 virtual void updateCoeffs();
00174
00175
00176 virtual void write(Ostream&) const;
00177 };
00178
00179
00180
00181
00182 }
00183
00184
00185
00186 #endif
00187
00188
Copyright © 2000-2009 OpenCFD Ltd