sphericalTensorField.C
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 #include "sphericalTensorField.H"
00028 #include "transformField.H"
00029
00030 #define TEMPLATE
00031 #include "FieldFunctionsM.C"
00032
00033
00034
00035 namespace Foam
00036 {
00037
00038
00039
00040 UNARY_FUNCTION(scalar, sphericalTensor, tr)
00041 UNARY_FUNCTION(sphericalTensor, sphericalTensor, sph)
00042 UNARY_FUNCTION(scalar, sphericalTensor, det)
00043 UNARY_FUNCTION(sphericalTensor, sphericalTensor, inv)
00044
00045 BINARY_OPERATOR(sphericalTensor, scalar, sphericalTensor, /, divide)
00046 BINARY_TYPE_OPERATOR(sphericalTensor, scalar, sphericalTensor, /, divide)
00047
00048
00049 template<>
00050 tmp<Field<sphericalTensor> > transformFieldMask<sphericalTensor>
00051 (
00052 const tensorField& tf
00053 )
00054 {
00055 return sph(tf);
00056 }
00057
00058 template<>
00059 tmp<Field<sphericalTensor> > transformFieldMask<sphericalTensor>
00060 (
00061 const tmp<tensorField>& ttf
00062 )
00063 {
00064 tmp<Field<sphericalTensor> > ret =
00065 transformFieldMask<sphericalTensor>(ttf());
00066 ttf.clear();
00067 return ret;
00068 }
00069
00070
00071 template<>
00072 tmp<Field<sphericalTensor> > transformFieldMask<sphericalTensor>
00073 (
00074 const symmTensorField& stf
00075 )
00076 {
00077 return sph(stf);
00078 }
00079
00080 template<>
00081 tmp<Field<sphericalTensor> > transformFieldMask<sphericalTensor>
00082 (
00083 const tmp<symmTensorField>& tstf
00084 )
00085 {
00086 tmp<Field<sphericalTensor> > ret =
00087 transformFieldMask<sphericalTensor>(tstf());
00088 tstf.clear();
00089 return ret;
00090 }
00091
00092
00093
00094
00095 }
00096
00097
00098
00099 #include "undefFieldFunctionsM.H"
00100
00101
Copyright © 2000-2009 OpenCFD Ltd