VMTK
Loading...
Searching...
No Matches
vtkvmtkXdaWriter Class Reference

Writes libmesh Xda files. More...

#include <vtkvmtkXdaWriter.h>

Inheritance diagram for vtkvmtkXdaWriter:
[legend]
Collaboration diagram for vtkvmtkXdaWriter:
[legend]

Public Types

typedef vtkUnstructuredGridWriter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkXdaWriter * NewInstance () const
void PrintSelf (std::ostream &os, vtkIndent indent) override
virtual void SetBoundaryDataArrayName (const char *)
virtual char * GetBoundaryDataArrayName ()

Static Public Member Functions

static vtkvmtkXdaWriter * New ()
static int IsTypeOf (const char *type)
static vtkvmtkXdaWriter * SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkXdaWriter ()
 ~vtkvmtkXdaWriter ()
void WriteData () override

Static Protected Member Functions

static void GetLibmeshConnectivity (int cellType, vtkIdList *libmeshConnectivity)
static void GetLibmeshFaceOrder (int cellType, vtkIdList *libmeshFaceOrder)

Protected Attributes

char * BoundaryDataArrayName

Detailed Description

Writes libmesh Xda files.

vtkvmtkXdaWriter writes libmesh Xda files

Definition at line 36 of file vtkvmtkXdaWriter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkUnstructuredGridWriter vtkvmtkXdaWriter::Superclass

Definition at line 40 of file vtkvmtkXdaWriter.h.

Constructor & Destructor Documentation

◆ vtkvmtkXdaWriter()

vtkvmtkXdaWriter::vtkvmtkXdaWriter ( )
protected

Definition at line 38 of file vtkvmtkXdaWriter.cxx.

39{
40 this->BoundaryDataArrayName = NULL;
41}

◆ ~vtkvmtkXdaWriter()

vtkvmtkXdaWriter::~vtkvmtkXdaWriter ( )
protected

Definition at line 43 of file vtkvmtkXdaWriter.cxx.

44{
45 if (this->BoundaryDataArrayName)
46 {
47 delete[] this->BoundaryDataArrayName;
48 this->BoundaryDataArrayName = NULL;
49 }
50}

Member Function Documentation

◆ New()

vtkvmtkXdaWriter * vtkvmtkXdaWriter::New ( )
static

◆ IsTypeOf()

int vtkvmtkXdaWriter::IsTypeOf ( const char * type)
static

◆ IsA()

virtual int vtkvmtkXdaWriter::IsA ( const char * type)
virtual

◆ SafeDownCast()

vtkvmtkXdaWriter * vtkvmtkXdaWriter::SafeDownCast ( vtkObjectBase * o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkXdaWriter::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkXdaWriter * vtkvmtkXdaWriter::NewInstance ( ) const

◆ PrintSelf()

void vtkvmtkXdaWriter::PrintSelf ( std::ostream & os,
vtkIndent indent )
override

Definition at line 566 of file vtkvmtkXdaWriter.cxx.

567{
568 vtkUnstructuredGridWriter::PrintSelf(os,indent);
569}

◆ SetBoundaryDataArrayName()

virtual void vtkvmtkXdaWriter::SetBoundaryDataArrayName ( const char * )
virtual

Set/get the name of the input cell data array holding integer boundary marker values for boundary (triangle/quad) cells. If set, one boundary-condition line per boundary cell is written to the output, giving the owning volume element, the libMesh-numbered local face id, and this marker value. If left NULL (default), no boundary condition section is written. Commonly named "CellEntityIds".

◆ GetBoundaryDataArrayName()

virtual char * vtkvmtkXdaWriter::GetBoundaryDataArrayName ( )
virtual

Set/get the name of the input cell data array holding integer boundary marker values for boundary (triangle/quad) cells. If set, one boundary-condition line per boundary cell is written to the output, giving the owning volume element, the libMesh-numbered local face id, and this marker value. If left NULL (default), no boundary condition section is written. Commonly named "CellEntityIds".

◆ WriteData()

void vtkvmtkXdaWriter::WriteData ( )
overrideprotected

Definition at line 52 of file vtkvmtkXdaWriter.cxx.

53{
54 vtkUnstructuredGrid *input= vtkUnstructuredGrid::SafeDownCast(this->GetInput());
55
56 if (!this->GetFileName())
57 {
58 vtkErrorMacro(<<"FileName not set.");
59 return;
60 }
61
62 std::ofstream out (this->GetFileName());
63
64 if (!out.good())
65 {
66 vtkErrorMacro(<<"Could not open file for writing.");
67 return;
68 }
69
70 input->BuildLinks();
71
72 int numberOfPoints = input->GetNumberOfPoints();
73 int numberOfCells = input->GetNumberOfCells();
74
75 vtkDataArray* boundaryDataArray = NULL;
76 if (this->BoundaryDataArrayName)
77 {
78 boundaryDataArray = input->GetCellData()->GetArray(this->BoundaryDataArrayName);
79 if (!boundaryDataArray)
80 {
81 vtkErrorMacro(<<"BoundaryDataArray with name specified does not exist");
82 }
83 }
84
85 int totalWeight = 0;
86
87 enum
88 {
89 tetraType = 0,
90 hexahedronType,
91 wedgeType,
92 pyramidType,
93 quadraticTetraType,
94 quadraticHexahedronType,
95 quadraticWedgeType,
96 biquadraticWedgeType,
97 quadraticPyramidType
98 };
99
100 const int numberOfVolumeCellTypes = 9;
101
102 enum
103 {
104 tet4LibmeshType = 8,
105 tet10LibmeshType,
106 hex8LibmeshType,
107 hex20LibmeshType,
108 hex27LibmeshType,
109 prism6LibmeshType,
110 prism15LibmeshType,
111 prism18LibmeshType,
112 pyramid5LibmeshType
113 };
114
115 int elementTypeLibmeshMap[numberOfVolumeCellTypes];
116 elementTypeLibmeshMap[tetraType] = tet4LibmeshType;
117 elementTypeLibmeshMap[hexahedronType] = hex8LibmeshType;
118 elementTypeLibmeshMap[wedgeType] = prism6LibmeshType;
119 elementTypeLibmeshMap[pyramidType] = pyramid5LibmeshType;
120 elementTypeLibmeshMap[quadraticTetraType] = tet10LibmeshType;
121 elementTypeLibmeshMap[quadraticHexahedronType] = hex20LibmeshType;
122 elementTypeLibmeshMap[quadraticWedgeType] = prism15LibmeshType;
123 elementTypeLibmeshMap[biquadraticWedgeType] = prism18LibmeshType;
124 elementTypeLibmeshMap[quadraticPyramidType] = -1;
125
126 int numberOfElementsInBlock[numberOfVolumeCellTypes];
127 int i;
128 for (i=0; i<numberOfVolumeCellTypes; i++)
129 {
130 numberOfElementsInBlock[i] = 0;
131 }
132
133 int blockVtkCellTypes[numberOfVolumeCellTypes];
134 blockVtkCellTypes[tetraType] = VTK_TETRA;
135 blockVtkCellTypes[hexahedronType] = VTK_HEXAHEDRON;
136 blockVtkCellTypes[wedgeType] = VTK_WEDGE;
137 blockVtkCellTypes[pyramidType] = VTK_PYRAMID;
138 blockVtkCellTypes[quadraticTetraType] = VTK_QUADRATIC_TETRA;
139 blockVtkCellTypes[quadraticHexahedronType] = VTK_QUADRATIC_HEXAHEDRON;
140 blockVtkCellTypes[quadraticWedgeType] = VTK_QUADRATIC_WEDGE;
141 blockVtkCellTypes[biquadraticWedgeType] = VTK_BIQUADRATIC_QUADRATIC_WEDGE;
142 blockVtkCellTypes[quadraticPyramidType] = VTK_QUADRATIC_PYRAMID;
143
144 int numberOfVolumeCells = 0;
145
146 for (i=0; i<numberOfCells; i++)
147 {
148 int cellType = input->GetCellType(i);
149 switch (cellType)
150 {
151 case VTK_TETRA:
152 ++numberOfElementsInBlock[tetraType];
153 break;
154 case VTK_HEXAHEDRON:
155 ++numberOfElementsInBlock[hexahedronType];
156 break;
157 case VTK_WEDGE:
158 ++numberOfElementsInBlock[wedgeType];
159 break;
160 case VTK_PYRAMID:
161 ++numberOfElementsInBlock[pyramidType];
162 break;
163 case VTK_QUADRATIC_TETRA:
164 ++numberOfElementsInBlock[quadraticTetraType];
165 break;
166 case VTK_QUADRATIC_HEXAHEDRON:
167 ++numberOfElementsInBlock[quadraticHexahedronType];
168 break;
169 case VTK_QUADRATIC_WEDGE:
170 ++numberOfElementsInBlock[quadraticWedgeType];
171 break;
172 case VTK_BIQUADRATIC_QUADRATIC_WEDGE:
173 ++numberOfElementsInBlock[biquadraticWedgeType];
174 break;
175 case VTK_QUADRATIC_PYRAMID:
176 vtkWarningMacro(<<"Quadratic pyramid not currently supported in libmesh. Skipping element.");
177 continue;
178 default:
179 continue;
180 }
181
182 ++numberOfVolumeCells;
183 totalWeight += input->GetCell(i)->GetNumberOfPoints();
184 }
185
186 int numberOfElementBlocks = 0;
187
188 for (i=0; i<numberOfVolumeCellTypes; i++)
189 {
190 if (numberOfElementsInBlock[i] > 0)
191 {
192 ++numberOfElementBlocks;
193 }
194 }
195
196 int numberOfBoundaryConditions = 0;
197 if (boundaryDataArray)
198 {
199 for (i=0; i<numberOfCells; i++)
200 {
201 int cellType = input->GetCellType(i);
202 switch (cellType)
203 {
204 case VTK_TRIANGLE:
205 case VTK_QUAD:
206 case VTK_QUADRATIC_TRIANGLE:
207 case VTK_QUADRATIC_QUAD:
208 numberOfBoundaryConditions++;
209 break;
210 default:
211 continue;
212 }
213 }
214 }
215
216 out << "DEAL 003:003" << endl;
217// out << "LIBM 0" << endl;
218 out << numberOfVolumeCells << "\t# Num. Elements" << endl;
219 out << numberOfPoints << "\t# Num. Nodes" << endl;
220 out << totalWeight << "\t# Sum of Element Weights" << endl;
221
222 out << numberOfBoundaryConditions << "\t# Num. Boundary Conds." << endl;
223
224 int stringSize = 65536;
225 out << stringSize << "\t# String Size (ignore)" << endl;
226
227// out << numberOfElementBlocks << "\t# Num. Element Blocks." << endl;
228 out << numberOfElementBlocks << "\t# Num. Element Types." << endl;
229
230 for (i=0; i<numberOfVolumeCellTypes; i++)
231 {
232 if (numberOfElementsInBlock[i] > 0)
233 {
234 out << elementTypeLibmeshMap[i] << " ";
235 }
236 }
237 out << "\t# Element types in each block." << endl;
238
239 for (i=0; i<numberOfVolumeCellTypes; i++)
240 {
241 if (numberOfElementsInBlock[i] > 0)
242 {
243 out << numberOfElementsInBlock[i] << " ";
244 }
245 }
246 out << "\t# Num. of elements in each block at each refinement level." << endl;
247
248 out << "Id String" << endl;
249 out << "Title String" << endl;
250
251 vtkIdList* volumeCellIdMap = vtkIdList::New();
252 volumeCellIdMap->SetNumberOfIds(numberOfCells);
253 int volumeCellCounter = 0;
254 for (i=0; i<numberOfVolumeCellTypes; i++)
255 {
256 if (numberOfElementsInBlock[i] == 0)
257 {
258 continue;
259 }
260
261 vtkIdTypeArray* typeCellIds = vtkIdTypeArray::New();
262 input->GetIdsOfCellsOfType(blockVtkCellTypes[i], typeCellIds);
263
264 vtkIdList* libmeshConnectivity = vtkIdList::New();
265 this->GetLibmeshConnectivity(blockVtkCellTypes[i],libmeshConnectivity);
266
267 int numberOfTypeCells = typeCellIds->GetNumberOfTuples();
268
269 int j;
270 for (j=0; j<numberOfTypeCells; j++)
271 {
272 vtkIdType id = typeCellIds->GetValue(j);
273 vtkIdList* cellPoints = vtkIdList::New();
274 input->GetCellPoints(id,cellPoints);
275 //TODO: get individual connectivity, reversed if needed by positive Jacobian in libMesh
276 int numberOfCellPoints = libmeshConnectivity->GetNumberOfIds();
277 for (int k=0; k<numberOfCellPoints; k++)
278 {
279 out << cellPoints->GetId(libmeshConnectivity->GetId(k)) << " ";
280 }
281// out << j << " " << "-1"; // TODO: change -1 into parent for AMR datasets
282 out << endl;
283
284 volumeCellIdMap->SetId(id,volumeCellCounter);
285 volumeCellCounter++;
286 cellPoints->Delete();
287 }
288
289 typeCellIds->Delete();
290 libmeshConnectivity->Delete();
291 }
292
293 double point[3];
294 for (i=0; i<numberOfPoints; i++)
295 {
296 input->GetPoint(i,point);
297 out << point[0] << " " << point[1] << " " << point[2] << endl;
298 }
299
300 if (boundaryDataArray)
301 {
302 for (i=0; i<numberOfCells; i++)
303 {
304 int faceCellType = input->GetCellType(i);
305 switch (faceCellType)
306 {
307 case VTK_TRIANGLE:
308 case VTK_QUAD:
309 case VTK_QUADRATIC_TRIANGLE:
310 case VTK_QUADRATIC_QUAD:
311 break;
312 default:
313 continue;
314 }
315
316 vtkIdList* faceCellPoints = vtkIdList::New();
317 input->GetCellPoints(i,faceCellPoints);
318
319 vtkIdList* cellIds = vtkIdList::New();
320 input->GetCellNeighbors(i,faceCellPoints,cellIds);
321
322 if (cellIds->GetNumberOfIds() != 1)
323 {
324 vtkWarningMacro("Boundary cell not on boundary!");
325 }
326
327 vtkIdType cellId = cellIds->GetId(0);
328
329 vtkCell* cell = input->GetCell(cellId);
330
331 int cellType = cell->GetCellType();
332
333 int numberOfFaces = cell->GetNumberOfFaces();
334
335 vtkIdType faceId = -1;
336
337 int j;
338 for (j=0; j<numberOfFaces; j++)
339 {
340 vtkCell* face = cell->GetFace(j);
341
342 vtkIdList* matchingPointIds = vtkIdList::New();
343 matchingPointIds->DeepCopy(face->GetPointIds());
344
345 matchingPointIds->IntersectWith(faceCellPoints);
346
347 int numberOfNonMatching = face->GetNumberOfPoints() - matchingPointIds->GetNumberOfIds();
348
349 matchingPointIds->Delete();
350
351 if (numberOfNonMatching==0)
352 {
353 faceId = j;
354 break;
355 }
356 }
357
358 vtkIdList* libmeshFaceOrder = vtkIdList::New();
359
360 this->GetLibmeshFaceOrder(cellType,libmeshFaceOrder);
361 vtkIdType libmeshFaceId = libmeshFaceOrder->GetId(faceId);
362
363 libmeshFaceOrder->Delete();
364
365 short int boundaryValue = static_cast<short int>(boundaryDataArray->GetComponent(i,0));
366 out << volumeCellIdMap->GetId(cellId) << " " << libmeshFaceId << " " << boundaryValue << endl;
367
368 faceCellPoints->Delete();
369 }
370 }
371
372 volumeCellIdMap->Delete();
373}
static void GetLibmeshFaceOrder(int cellType, vtkIdList *libmeshFaceOrder)
static void GetLibmeshConnectivity(int cellType, vtkIdList *libmeshConnectivity)

◆ GetLibmeshConnectivity()

void vtkvmtkXdaWriter::GetLibmeshConnectivity ( int cellType,
vtkIdList * libmeshConnectivity )
staticprotected

Definition at line 375 of file vtkvmtkXdaWriter.cxx.

376{
377 libmeshConnectivity->Initialize();
378
379 switch(cellType)
380 {
381 case VTK_TETRA:
382 libmeshConnectivity->SetNumberOfIds(4);
383 libmeshConnectivity->SetId(0,0);
384 libmeshConnectivity->SetId(1,1);
385 libmeshConnectivity->SetId(2,2);
386 libmeshConnectivity->SetId(3,3);
387 break;
388 case VTK_HEXAHEDRON:
389 libmeshConnectivity->SetNumberOfIds(8);
390 libmeshConnectivity->SetId(0,0);
391 libmeshConnectivity->SetId(1,1);
392 libmeshConnectivity->SetId(2,2);
393 libmeshConnectivity->SetId(3,3);
394 libmeshConnectivity->SetId(4,4);
395 libmeshConnectivity->SetId(5,5);
396 libmeshConnectivity->SetId(6,6);
397 libmeshConnectivity->SetId(7,7);
398 break;
399 case VTK_WEDGE:
400 libmeshConnectivity->SetNumberOfIds(6);
401 libmeshConnectivity->SetId(0,0);
402 libmeshConnectivity->SetId(1,2);
403 libmeshConnectivity->SetId(2,1);
404 libmeshConnectivity->SetId(3,3);
405 libmeshConnectivity->SetId(4,5);
406 libmeshConnectivity->SetId(5,4);
407 break;
408 case VTK_PYRAMID:
409 libmeshConnectivity->SetNumberOfIds(5);
410 libmeshConnectivity->SetId(0,0);
411 libmeshConnectivity->SetId(1,1);
412 libmeshConnectivity->SetId(2,2);
413 libmeshConnectivity->SetId(3,3);
414 libmeshConnectivity->SetId(4,4);
415 break;
416 case VTK_QUADRATIC_TETRA:
417 libmeshConnectivity->SetNumberOfIds(10);
418 libmeshConnectivity->SetId(0,0);
419 libmeshConnectivity->SetId(1,1);
420 libmeshConnectivity->SetId(2,2);
421 libmeshConnectivity->SetId(3,3);
422 libmeshConnectivity->SetId(4,4);
423 libmeshConnectivity->SetId(5,5);
424 libmeshConnectivity->SetId(6,6);
425 libmeshConnectivity->SetId(7,7);
426 libmeshConnectivity->SetId(8,8);
427 libmeshConnectivity->SetId(9,9);
428 break;
429 case VTK_QUADRATIC_HEXAHEDRON:
430 libmeshConnectivity->SetNumberOfIds(20);
431 libmeshConnectivity->SetId(0,0);
432 libmeshConnectivity->SetId(1,1);
433 libmeshConnectivity->SetId(2,2);
434 libmeshConnectivity->SetId(3,3);
435 libmeshConnectivity->SetId(4,4);
436 libmeshConnectivity->SetId(5,5);
437 libmeshConnectivity->SetId(6,6);
438 libmeshConnectivity->SetId(7,7);
439 libmeshConnectivity->SetId(8,8);
440 libmeshConnectivity->SetId(9,9);
441 libmeshConnectivity->SetId(10,10);
442 libmeshConnectivity->SetId(11,11);
443 libmeshConnectivity->SetId(12,16);
444 libmeshConnectivity->SetId(13,17);
445 libmeshConnectivity->SetId(14,18);
446 libmeshConnectivity->SetId(15,19);
447 libmeshConnectivity->SetId(16,12);
448 libmeshConnectivity->SetId(17,13);
449 libmeshConnectivity->SetId(18,14);
450 libmeshConnectivity->SetId(19,15);
451 break;
452 case VTK_QUADRATIC_WEDGE:
453 libmeshConnectivity->SetNumberOfIds(15);
454 libmeshConnectivity->SetId(0,0);
455 libmeshConnectivity->SetId(1,2);
456 libmeshConnectivity->SetId(2,1);
457 libmeshConnectivity->SetId(3,3);
458 libmeshConnectivity->SetId(4,5);
459 libmeshConnectivity->SetId(5,4);
460 libmeshConnectivity->SetId(6,8);
461 libmeshConnectivity->SetId(7,7);
462 libmeshConnectivity->SetId(8,6);
463 libmeshConnectivity->SetId(9,12);
464 libmeshConnectivity->SetId(10,14);
465 libmeshConnectivity->SetId(11,13);
466 libmeshConnectivity->SetId(12,11);
467 libmeshConnectivity->SetId(13,10);
468 libmeshConnectivity->SetId(14,9);
469 break;
470 case VTK_BIQUADRATIC_QUADRATIC_WEDGE:
471 libmeshConnectivity->SetNumberOfIds(18);
472 libmeshConnectivity->SetId(0,0);
473 libmeshConnectivity->SetId(1,2);
474 libmeshConnectivity->SetId(2,1);
475 libmeshConnectivity->SetId(3,3);
476 libmeshConnectivity->SetId(4,5);
477 libmeshConnectivity->SetId(5,4);
478 libmeshConnectivity->SetId(6,8);
479 libmeshConnectivity->SetId(7,7);
480 libmeshConnectivity->SetId(8,6);
481 libmeshConnectivity->SetId(9,12);
482 libmeshConnectivity->SetId(10,14);
483 libmeshConnectivity->SetId(11,13);
484 libmeshConnectivity->SetId(12,11);
485 libmeshConnectivity->SetId(13,10);
486 libmeshConnectivity->SetId(14,9);
487 libmeshConnectivity->SetId(15,17);
488 libmeshConnectivity->SetId(16,16);
489 libmeshConnectivity->SetId(17,15);
490 break;
491 default:
492 std::cerr<<"Element type not currently supported in libmesh. Skipping element."<<std::endl;
493 break;
494 }
495}

◆ GetLibmeshFaceOrder()

void vtkvmtkXdaWriter::GetLibmeshFaceOrder ( int cellType,
vtkIdList * libmeshFaceOrder )
staticprotected

Definition at line 497 of file vtkvmtkXdaWriter.cxx.

498{
499 libmeshFaceOrder->Initialize();
500
501 switch(cellType)
502 {
503 case VTK_TETRA:
504 libmeshFaceOrder->SetNumberOfIds(4);
505 libmeshFaceOrder->SetId(0,1);
506 libmeshFaceOrder->SetId(1,2);
507 libmeshFaceOrder->SetId(2,3);
508 libmeshFaceOrder->SetId(3,0);
509 break;
510 case VTK_HEXAHEDRON:
511 libmeshFaceOrder->SetNumberOfIds(6);
512 libmeshFaceOrder->SetId(0,4);
513 libmeshFaceOrder->SetId(1,2);
514 libmeshFaceOrder->SetId(2,1);
515 libmeshFaceOrder->SetId(3,3);
516 libmeshFaceOrder->SetId(4,0);
517 libmeshFaceOrder->SetId(5,5);
518 break;
519 case VTK_WEDGE:
520 libmeshFaceOrder->SetNumberOfIds(5);
521 libmeshFaceOrder->SetId(0,0);
522 libmeshFaceOrder->SetId(1,4);
523 libmeshFaceOrder->SetId(2,3);
524 libmeshFaceOrder->SetId(3,2);
525 libmeshFaceOrder->SetId(4,1);
526 break;
527 case VTK_PYRAMID:
528 libmeshFaceOrder->SetNumberOfIds(5);
529 libmeshFaceOrder->SetId(0,4);
530 libmeshFaceOrder->SetId(1,0);
531 libmeshFaceOrder->SetId(2,1);
532 libmeshFaceOrder->SetId(3,2);
533 libmeshFaceOrder->SetId(4,3);
534 break;
535 case VTK_QUADRATIC_TETRA:
536 libmeshFaceOrder->SetNumberOfIds(4);
537 libmeshFaceOrder->SetId(0,1);
538 libmeshFaceOrder->SetId(1,2);
539 libmeshFaceOrder->SetId(2,3);
540 libmeshFaceOrder->SetId(3,0);
541 break;
542 case VTK_QUADRATIC_HEXAHEDRON:
543 libmeshFaceOrder->SetNumberOfIds(6);
544 libmeshFaceOrder->SetId(0,4);
545 libmeshFaceOrder->SetId(1,2);
546 libmeshFaceOrder->SetId(2,1);
547 libmeshFaceOrder->SetId(3,3);
548 libmeshFaceOrder->SetId(4,0);
549 libmeshFaceOrder->SetId(5,5);
550 break;
551 case VTK_QUADRATIC_WEDGE:
552 case VTK_BIQUADRATIC_QUADRATIC_WEDGE:
553 libmeshFaceOrder->SetNumberOfIds(5);
554 libmeshFaceOrder->SetId(0,0);
555 libmeshFaceOrder->SetId(1,4);
556 libmeshFaceOrder->SetId(2,3);
557 libmeshFaceOrder->SetId(3,2);
558 libmeshFaceOrder->SetId(4,1);
559 break;
560 default:
561 std::cerr<<"Element type not currently supported in libmesh. Skipping element."<<std::endl;
562 break;
563 }
564}

Member Data Documentation

◆ BoundaryDataArrayName

char* vtkvmtkXdaWriter::BoundaryDataArrayName
protected

Definition at line 64 of file vtkvmtkXdaWriter.h.


The documentation for this class was generated from the following files: