fvBoundaryMesh.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 "fvMesh.H"
00028 #include "fvBoundaryMesh.H"
00029
00030
00031
00032
00033 namespace Foam
00034 {
00035
00036
00037
00038 void fvBoundaryMesh::addPatches(const polyBoundaryMesh& basicBdry)
00039 {
00040 setSize(basicBdry.size());
00041
00042
00043 fvPatchList& Patches = *this;
00044
00045 forAll(Patches, patchI)
00046 {
00047 Patches.set(patchI, fvPatch::New(basicBdry[patchI], *this));
00048 }
00049 }
00050
00051
00052
00053
00054 fvBoundaryMesh::fvBoundaryMesh
00055 (
00056 const fvMesh& m
00057 )
00058 :
00059 fvPatchList(0),
00060 mesh_(m)
00061 {}
00062
00063
00064 fvBoundaryMesh::fvBoundaryMesh
00065 (
00066 const fvMesh& m,
00067 const polyBoundaryMesh& basicBdry
00068 )
00069 :
00070 fvPatchList(basicBdry.size()),
00071 mesh_(m)
00072 {
00073 addPatches(basicBdry);
00074 }
00075
00076
00077
00078
00079 void fvBoundaryMesh::movePoints()
00080 {
00081 forAll(*this, patchi)
00082 {
00083 operator[](patchi).initMovePoints();
00084 }
00085
00086 forAll(*this, patchi)
00087 {
00088 operator[](patchi).movePoints();
00089 }
00090 }
00091
00092
00093 lduInterfacePtrsList fvBoundaryMesh::interfaces() const
00094 {
00095 lduInterfacePtrsList interfaces(size());
00096
00097 forAll (interfaces, patchi)
00098 {
00099 if (isA<lduInterface>(this->operator[](patchi)))
00100 {
00101 interfaces.set
00102 (
00103 patchi,
00104 &refCast<const lduInterface>(this->operator[](patchi))
00105 );
00106 }
00107 }
00108
00109 return interfaces;
00110 }
00111
00112
00113 void fvBoundaryMesh::readUpdate(const polyBoundaryMesh& basicBdry)
00114 {
00115 clear();
00116 addPatches(basicBdry);
00117 }
00118
00119
00120
00121
00122 }
00123
00124
Copyright © 2000-2009 OpenCFD Ltd