blockDescriptor.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
00038 #ifndef blockDescriptor_H
00039 #define blockDescriptor_H
00040
00041 #include "scalar.H"
00042 #include "label.H"
00043 #include "point.H"
00044 #include "cellShape.H"
00045 #include "scalarList.H"
00046 #include "curvedEdgeList.H"
00047
00048
00049
00050 namespace Foam
00051 {
00052
00053 class Istream;
00054 class Ostream;
00055
00056
00057
00058
00059
00060 class blockDescriptor
00061 {
00062
00063
00064
00065 const pointField& blockMeshPoints_;
00066
00067
00068 cellShape blockShape_;
00069
00070
00071 const curvedEdgeList& curvedEdges_;
00072
00073
00074 List<List<point> > edgePoints_;
00075
00076
00077 scalarListList edgeWeights_;
00078
00079
00080 Vector<label> n_;
00081
00082
00083 scalarList expand_;
00084
00085
00086 word zoneName_;
00087
00088
00089
00090 void makeBlockEdges();
00091
00092 void setEdge(label edge, label start, label end, label dim);
00093
00094
00095 public:
00096
00097
00098
00099
00100 blockDescriptor
00101 (
00102 const cellShape&,
00103 const pointField& blockMeshPoints,
00104 const curvedEdgeList& edges,
00105 const Vector<label>& n,
00106 const scalarList& expand,
00107 const word& zoneName = ""
00108 );
00109
00110
00111 blockDescriptor
00112 (
00113 const pointField& blockMeshPoints,
00114 const curvedEdgeList& edges,
00115 Istream& is
00116 );
00117
00118
00119 autoPtr<blockDescriptor> clone() const
00120 {
00121 notImplemented("blockDescriptor::clone()");
00122 return autoPtr<blockDescriptor>(NULL);
00123 }
00124
00125
00126
00127
00128
00129
00130 const pointField& points() const;
00131
00132 const cellShape& blockShape() const;
00133
00134 const List<List<point> >& blockEdgePoints() const;
00135
00136 const scalarListList& blockEdgeWeights() const;
00137
00138 const Vector<label>& n() const;
00139
00140 const word& zoneName() const;
00141
00142
00143
00144 void operator=(const blockDescriptor&);
00145
00146
00147
00148
00149 friend Ostream& operator<<(Ostream&, const blockDescriptor&);
00150 };
00151
00152
00153 inline Istream& operator>>(Istream& is, blockDescriptor*)
00154 {
00155 notImplemented("Istream& operator>>(Istream& is, blockDescriptor*)");
00156 return is;
00157 }
00158
00159
00160
00161
00162 }
00163
00164
00165
00166 #endif
00167
00168
Copyright © 2000-2009 OpenCFD Ltd