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 #include "surfaceInterpolateFields.H"
00027 
00028 
00029 
00030 
00031 namespace Foam
00032 {
00033     defineTypeNameAndDebug(surfaceInterpolateFields, 0);
00034 }
00035 
00036 
00037 
00038 
00039 Foam::surfaceInterpolateFields::surfaceInterpolateFields
00040 (
00041     const word& name,
00042     const objectRegistry& obr,
00043     const dictionary& dict,
00044     const bool loadFromFiles
00045 )
00046 :
00047     name_(name),
00048     obr_(obr),
00049     active_(true),
00050     fieldSet_()
00051 {
00052     
00053     if (!isA<fvMesh>(obr_))
00054     {
00055         active_ = false;
00056         WarningIn
00057         (
00058             "surfaceInterpolateFields::surfaceInterpolateFields"
00059             "("
00060                 "const word&, "
00061                 "const objectRegistry&, "
00062                 "const dictionary&, "
00063                 "const bool"
00064             ")"
00065         )   << "No fvMesh available, deactivating."
00066             << endl;
00067     }
00068 
00069     read(dict);
00070 }
00071 
00072 
00073 
00074 
00075 Foam::surfaceInterpolateFields::~surfaceInterpolateFields()
00076 {}
00077 
00078 
00079 
00080 
00081 void Foam::surfaceInterpolateFields::read(const dictionary& dict)
00082 {
00083     if (active_)
00084     {
00085         dict.lookup("fields") >> fieldSet_;
00086     }
00087 }
00088 
00089 
00090 void Foam::surfaceInterpolateFields::execute()
00091 {
00092     
00093 
00094     
00095     ssf_.clear();
00096     svf_.clear();
00097     sSpheretf_.clear();
00098     sSymmtf_.clear();
00099     stf_.clear();
00100 
00101     interpolateFields<scalar>(ssf_);
00102     interpolateFields<vector>(svf_);
00103     interpolateFields<sphericalTensor>(sSpheretf_);
00104     interpolateFields<symmTensor>(sSymmtf_);
00105     interpolateFields<tensor>(stf_);
00106 }
00107 
00108 
00109 void Foam::surfaceInterpolateFields::end()
00110 {
00111     
00112 }
00113 
00114 
00115 void Foam::surfaceInterpolateFields::write()
00116 {
00117     
00118 }
00119 
00120 
00121