Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91146162
mesh_io_diana.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 8, 09:08
Size
3 KB
Mime Type
text/x-c++
Expires
Sun, Nov 10, 09:08 (2 d)
Engine
blob
Format
Raw Data
Handle
22205035
Attached To
rAKA akantu
mesh_io_diana.hh
View Options
/**
* @file mesh_io_diana.hh
* @author Alodie Schneuwly <alodie.schneuwly@epfl.ch>
* @date Thu Mar 10 11:24:27 2011
*
* @brief
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_MESH_IO_DIANA_HH__
#define __AKANTU_MESH_IO_DIANA_HH__
/* -------------------------------------------------------------------------- */
#include "mesh_io.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_AKANTU__
class
MeshIODiana
:
public
MeshIO
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
MeshIODiana
();
virtual
~
MeshIODiana
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// read a mesh from the file
virtual
void
read
(
const
std
::
string
&
filename
,
Mesh
&
mesh
);
/// write a mesh to a file
virtual
void
write
(
const
std
::
string
&
filename
,
const
Mesh
&
mesh
);
private
:
void
readCoordinates
(
std
::
ifstream
&
infile
,
Mesh
&
mesh
,
UInt
&
first_node_number
);
void
readConnectivity
(
std
::
ifstream
&
infile
,
Mesh
&
mesh
,
std
::
vector
<
Element
>
&
global_to_local_index
,
UInt
first_node_number
);
void
readMaterialElement
(
std
::
ifstream
&
infile
,
Mesh
&
mesh
,
std
::
vector
<
Element
>
&
global_to_local_index
);
void
readMaterial
(
std
::
ifstream
&
infile
,
Mesh
&
mesh
,
const
std
::
string
&
filename
);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
std
::
map
<
std
::
string
,
ElementType
>
_diana_to_akantu_element_types
;
std
::
map
<
std
::
string
,
std
::
string
>
_diana_to_akantu_mat_prop
;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
//#include "mesh_io_diana_inline_impl.cc"
// /// standard output stream operator
// inline std::ostream & operator <<(std::ostream & stream, const MeshIODiana & _this)
// {
// _this.printself(stream);
// return stream;
// }
__END_AKANTU__
#endif
/* __AKANTU_MESH_IO_DIANA_HH__ */
Event Timeline
Log In to Comment