| 80 | \*---------------------------------------------------------------------------*/ |
| 81 | |
| 82 | class readFields |
| 83 | : |
| 84 | public fvMeshFunctionObject |
| 85 | { |
| 86 | protected: |
| 87 | |
| 88 | // Protected data |
| 89 | |
| 90 | //- Fields to load |
| 91 | wordList fieldSet_; |
| 92 | |
| 93 | //- Loaded fields |
| 94 | PtrList<volScalarField> vsf_; |
| 95 | PtrList<volVectorField> vvf_; |
| 96 | PtrList<volSphericalTensorField> vSpheretf_; |
| 97 | PtrList<volSymmTensorField> vSymmtf_; |
| 98 | PtrList<volTensorField> vtf_; |
| 99 | |
| 100 | PtrList<surfaceScalarField> ssf_; |
| 101 | PtrList<surfaceVectorField> svf_; |
| 102 | PtrList<surfaceSphericalTensorField> sSpheretf_; |
| 103 | PtrList<surfaceSymmTensorField> sSymmtf_; |
| 104 | PtrList<surfaceTensorField> stf_; |
| 105 | |
| 106 | |
| 107 | // Protected Member Functions |
| 108 | |
| 109 | template<class Type> |
| 110 | void loadField |
| 111 | ( |
| 112 | const word&, |
| 113 | PtrList<GeometricField<Type, fvPatchField, volMesh>>&, |
| 114 | PtrList<GeometricField<Type, fvsPatchField, surfaceMesh>>& |
| 115 | ) const; |
| 116 | |
| 117 | |
| 118 | private: |
| 119 | |
| 120 | // Private member functions |
| 121 | |
| 122 | //- Disallow default bitwise copy construct |
| 123 | readFields(const readFields&); |
| 124 | |
| 125 | //- Disallow default bitwise assignment |
| 126 | void operator=(const readFields&); |
| 127 | |
| 128 | |
| 129 | public: |
| 130 | |
| 131 | //- Runtime type information |
| 132 | TypeName("readFields"); |
| 133 | |
| 134 | |
| 135 | // Constructors |
| 136 | |
| 137 | //- Construct for given objectRegistry and dictionary. |
| 138 | // Allow the possibility to load fields from files |
| 139 | readFields |
no outgoing calls
no test coverage detected