Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90638746
testc.c
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
Sun, Nov 3, 11:55
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Nov 5, 11:55 (2 d)
Engine
blob
Format
Raw Data
Handle
20760803
Attached To
rAKA akantu
testc.c
View Options
/*
Copyright 2008 Guillaume ANCIAUX (guillaume.anciaux@epfl.ch)
This file is part of ParaViewHelper.
ParaViewHelper is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ParaViewHelper 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with ParaViewHelper. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../src/dumper_paraview_C_wrapper.h"
extern
void
BuildGridMesh
(
double
**
pos
,
int
**
conn
,
int
*
nb_nodes
,
int
*
nb_elements
,
double
L
,
double
D
,
double
W
,
double
NL
,
double
ND
,
double
NW
);
int
main
(){
double
*
positions
;
int
*
connectivity
;
int
nb_nodes
;
int
nb_elements
;
int
D
=
1
,
W
=
1
,
L
=
1
,
ND
=
1
,
NL
=
1
,
NW
=
1
;
BuildGridMesh
(
&
positions
,
&
connectivity
,
&
nb_nodes
,
&
nb_elements
,
L
,
D
,
W
,
NL
,
ND
,
NW
);
PHelper
*
handle
=
getNewHandle
();
SetPoints
(
handle
,
positions
,
3
,
nb_nodes
,
"cube-mesh"
);
SetConnectivity
(
handle
,
connectivity
,
TETRA2
,
nb_elements
,
FORTRAN_MODE
);
AddNodeDataField
(
handle
,
positions
,
3
,
"positions"
);
SetMode
(
handle
,
TEXT
);
Init
(
handle
);
Dump
(
handle
);
return
0
;
}
Event Timeline
Log In to Comment