vtkbone
vtkboneAbaqusInputWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright 2010-2016, Numerics88 Solutions Ltd.
4  http://www.numerics88.com/
5 
6  Copyright (c) Eric Nodwell and Steven K. Boyd
7  See Copyright.txt for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 =========================================================================*/
13 
24 #ifndef __vtkboneAbaqusInputWriter_h
25 #define __vtkboneAbaqusInputWriter_h
26 
27 #include "vtkWriter.h"
28 #include "vtkboneWin32Header.h"
29 
30 // Forward declarations
31 class vtkPoints;
33 class vtkDoubleArray;
34 class vtkIdList;
35 class vtkIdTypeArray;
36 class vtkCharArray;
37 class vtkboneConstraint;
38 
40 {
41 public:
42  static vtkboneAbaqusInputWriter *New();
43  vtkTypeMacro(vtkboneAbaqusInputWriter, vtkWriter);
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkSetStringMacro(FileName);
49  vtkGetStringMacro(FileName);
51 
52 protected:
55 
57 
58  virtual void WriteData();
59 
60  //BTX
61  virtual int WriteHeading (std::ostream& f, vtkboneFiniteElementModel* model);
62  virtual int WriteNodes (std::ostream& f, vtkboneFiniteElementModel* model);
63  virtual int WriteElements (std::ostream& f, vtkboneFiniteElementModel* model);
64  virtual int WriteMaterials (std::ostream& f, vtkboneFiniteElementModel* model);
65  virtual int WriteNodeSets (std::ostream& f, vtkboneFiniteElementModel* model);
66  virtual int WriteElementSets (std::ostream& f, vtkboneFiniteElementModel* model);
67  virtual int WriteSolidSections (std::ostream& f, vtkboneFiniteElementModel* model);
68  virtual int WriteStep (std::ostream& f, vtkboneFiniteElementModel* model);
69  virtual int WriteBoundaries (std::ostream& f, vtkboneFiniteElementModel* model);
70  virtual int WriteLoads (std::ostream& f, vtkboneFiniteElementModel* model);
71  int WriteIndexArray (std::ostream& f, vtkIdTypeArray* data);
72  std::string SpacesToUnderscores (std::string s);
73  //ETX
74 
75  char* FileName;
76 
77 private:
78  vtkboneAbaqusInputWriter(const vtkboneAbaqusInputWriter&); // Not implemented
79  void operator=(const vtkboneAbaqusInputWriter&); // Not implemented
80 };
81 
82 #endif
83 
data model for finite element meshes
data
#define VTKBONE_EXPORT
info
writes an Abaqus input file.
a constraint for a finite element mesh
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkAlgorithm * New()
virtual void WriteData()=0
port
void operator=(const vtkObjectBase &)
void PrintSelf(ostream &os, vtkIndent indent)