51 template<
class Scalar,
class ArrayScalar>
54 this -> basisCardinality_ = 5;
55 this -> basisDegree_ = 1;
56 this -> basisCellTopology_ = shards::CellTopology(shards::getCellTopologyData<shards::Wedge<6> >() );
57 this -> basisType_ = BASIS_FEM_DEFAULT;
58 this -> basisCoordinates_ = COORDINATES_CARTESIAN;
59 this -> basisTagsAreSet_ =
false;
62 template<
class Scalar,
class ArrayScalar>
81 Intrepid::setOrdinalTagData(
this -> tagToOrdinal_,
82 this -> ordinalToTag_,
84 this -> basisCardinality_,
93 template<
class Scalar,
class ArrayScalar>
95 const ArrayScalar & inputPoints,
96 const EOperator operatorType)
const {
99 #ifdef HAVE_INTREPID_DEBUG
100 Intrepid::getValues_HDIV_Args<Scalar, ArrayScalar>(outputValues,
103 this -> getBaseCellTopology(),
104 this -> getCardinality() );
108 int dim0 = inputPoints.dimension(0);
115 switch (operatorType) {
117 for (
int i0 = 0; i0 < dim0; i0++) {
118 x = inputPoints(i0, 0);
119 y = inputPoints(i0, 1);
120 z = inputPoints(i0, 2);
123 outputValues(0, i0, 0) = x/2.0;
124 outputValues(0, i0, 1) = (y - 1.0)/2.0;
125 outputValues(0, i0, 2) = 0.0;
127 outputValues(1, i0, 0) = x/2.0;
128 outputValues(1, i0, 1) = y/2.0;
129 outputValues(1, i0, 2) = 0.0;
131 outputValues(2, i0, 0) = (x - 1.0)/2.0;
132 outputValues(2, i0, 1) = y/2.0;
133 outputValues(2, i0, 2) = 0.0;
135 outputValues(3, i0, 0) = 0.0;
136 outputValues(3, i0, 1) = 0.0;
137 outputValues(3, i0, 2) = z - 1.0;
139 outputValues(4, i0, 0) = 0.0;
140 outputValues(4, i0, 1) = 0.0;
141 outputValues(4, i0, 2) = 1.0 + z;
147 for (
int i0 = 0; i0 < dim0; i0++) {
148 outputValues(0, i0) = 1.0;
149 outputValues(1, i0) = 1.0;
150 outputValues(2, i0) = 1.0;
151 outputValues(3, i0) = 1.0;
152 outputValues(4, i0) = 1.0;
157 TEUCHOS_TEST_FOR_EXCEPTION( (operatorType == OPERATOR_CURL), std::invalid_argument,
158 ">>> ERROR (Basis_HDIV_WEDGE_I1_FEM): CURL is invalid operator for HDIV Basis Functions");
162 TEUCHOS_TEST_FOR_EXCEPTION( (operatorType == OPERATOR_GRAD), std::invalid_argument,
163 ">>> ERROR (Basis_HDIV_WEDGE_I1_FEM): GRAD is invalid operator for HDIV Basis Functions");
176 TEUCHOS_TEST_FOR_EXCEPTION( ( (operatorType == OPERATOR_D1) ||
177 (operatorType == OPERATOR_D2) ||
178 (operatorType == OPERATOR_D3) ||
179 (operatorType == OPERATOR_D4) ||
180 (operatorType == OPERATOR_D5) ||
181 (operatorType == OPERATOR_D6) ||
182 (operatorType == OPERATOR_D7) ||
183 (operatorType == OPERATOR_D8) ||
184 (operatorType == OPERATOR_D9) ||
185 (operatorType == OPERATOR_D10) ),
186 std::invalid_argument,
187 ">>> ERROR (Basis_HDIV_WEDGE_I1_FEM): Invalid operator type");
191 TEUCHOS_TEST_FOR_EXCEPTION( ( (operatorType != OPERATOR_VALUE) &&
192 (operatorType != OPERATOR_GRAD) &&
193 (operatorType != OPERATOR_CURL) &&
194 (operatorType != OPERATOR_DIV) &&
195 (operatorType != OPERATOR_D1) &&
196 (operatorType != OPERATOR_D2) &&
197 (operatorType != OPERATOR_D3) &&
198 (operatorType != OPERATOR_D4) &&
199 (operatorType != OPERATOR_D5) &&
200 (operatorType != OPERATOR_D6) &&
201 (operatorType != OPERATOR_D7) &&
202 (operatorType != OPERATOR_D8) &&
203 (operatorType != OPERATOR_D9) &&
204 (operatorType != OPERATOR_D10) ),
205 std::invalid_argument,
206 ">>> ERROR (Basis_HDIV_WEDGE_I1_FEM): Invalid operator type");
212 template<
class Scalar,
class ArrayScalar>
214 const ArrayScalar & inputPoints,
215 const ArrayScalar & cellVertices,
216 const EOperator operatorType)
const {
217 TEUCHOS_TEST_FOR_EXCEPTION( (
true), std::logic_error,
218 ">>> ERROR (Basis_HDIV_WEDGE_I1_FEM): FEM Basis calling an FVD member function");
void initializeTags()
Initializes tagToOrdinal_ and ordinalToTag_ lookup arrays.
Basis_HDIV_WEDGE_I1_FEM()
Constructor.
void getValues(ArrayScalar &outputValues, const ArrayScalar &inputPoints, const EOperator operatorType) const
Evaluation of a FEM basis on a reference Wedge cell.