Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82752051
test_facet_extraction_tetrahedron_4.cc
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, Sep 13, 05:57
Size
2 KB
Mime Type
text/x-c
Expires
Sun, Sep 15, 05:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20741091
Attached To
rAKA akantu
test_facet_extraction_tetrahedron_4.cc
View Options
/**
* @file test_facet_extraction_tetrahedron_4.cc
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Marco Vocialta <marco.vocialta@epfl.ch>
*
* @date creation: Fri Sep 03 2010
* @date last modification: Tue Jan 07 2014
*
* @brief test of internal facet extraction
*
* @section LICENSE
*
* Copyright (©) 2010-2012, 2014 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/>.
*
*/
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "mesh.hh"
#include "mesh_io.hh"
#include "mesh_io_msh.hh"
#include "mesh_utils.hh"
#include "solid_mechanics_model.hh"
#include "material.hh"
/* -------------------------------------------------------------------------- */
#ifdef AKANTU_USE_IOHELPER
# include "dumper_paraview.hh"
#endif
//AKANTU_USE_IOHELPER
using
namespace
akantu
;
int
main
(
int
argc
,
char
*
argv
[])
{
akantu
::
initialize
(
argc
,
argv
);
int
dim
=
3
;
Mesh
mesh
(
dim
);
MeshIOMSH
mesh_io
;
mesh_io
.
read
(
"cube.msh"
,
mesh
);
Mesh
mesh_facets
(
mesh
.
initMeshFacets
(
"mesh_facets"
));
MeshUtils
::
buildAllFacets
(
mesh
,
mesh_facets
);
#ifdef AKANTU_USE_IOHELPER
DumperParaview
dumper1
(
"test-facet-extraction"
);
dumper1
.
registerMesh
(
mesh
,
dim
);
dumper1
.
dump
();
DumperParaview
dumper2
(
"test-facet-extraction_boundary"
);
dumper2
.
registerMesh
(
mesh
,
dim
-
1
);
dumper2
.
dump
();
DumperParaview
dumper3
(
"test-facet-extraction_internal"
);
dumper3
.
registerMesh
(
mesh_facets
,
dim
);
dumper3
.
dump
();
#endif
//AKANTU_USE_IOHELPER
akantu
::
finalize
();
return
EXIT_SUCCESS
;
}
Event Timeline
Log In to Comment