00001 //*****************************************************************// 00002 // Albany 2.0: Copyright 2012 Sandia Corporation // 00003 // This Software is released under the BSD license detailed // 00004 // in the file "license.txt" in the top-level Albany directory // 00005 //*****************************************************************// 00006 #ifndef ALBANY_ASCII_STKMESH2DSTRUCT_HPP 00007 #define ALBANY_ASCII_STKMESH2DSTRUCT_HPP 00008 00009 #include "Albany_GenericSTKMeshStruct.hpp" 00010 00011 //#include <Ionit_Initializer.h> 00012 00013 namespace Albany { 00014 00015 class AsciiSTKMesh2D : public GenericSTKMeshStruct { 00016 00017 public: 00018 00019 AsciiSTKMesh2D( 00020 const Teuchos::RCP<Teuchos::ParameterList>& params, 00021 const Teuchos::RCP<const Epetra_Comm>& epetra_comm); 00022 00023 ~AsciiSTKMesh2D(); 00024 00025 void setFieldAndBulkData( 00026 const Teuchos::RCP<const Epetra_Comm>& comm, 00027 const Teuchos::RCP<Teuchos::ParameterList>& params, 00028 const unsigned int neq_, 00029 const AbstractFieldContainer::FieldContainerRequirements& req, 00030 const Teuchos::RCP<Albany::StateInfoStruct>& sis, 00031 const unsigned int worksetSize); 00032 00034 bool hasRestartSolution() const {return false; } 00035 00037 double restartDataTime() const {return -1.0; } 00038 00039 private: 00040 //Ioss::Init::Initializer ioInit; 00041 00042 Teuchos::RCP<const Teuchos::ParameterList> 00043 getValidDiscretizationParameters() const; 00044 00045 Teuchos::RCP<Teuchos::FancyOStream> out; 00046 bool periodic; 00047 int NumElemNodes; //number of nodes per element (e.g. 3 for Triangles) 00048 int NumNodes; //number of nodes 00049 int NumEles; //number of elements 00050 int NumBdEdges; //number of faces on basal boundary 00051 double (*xyz)[3]; 00052 double* sh; 00053 int (*eles)[4]; //hard-coded for quads 00054 int (*be)[2]; 00055 }; 00056 00057 } 00058 #endif