ASL
0.1.7
Advanced Simulation Library
src
readers
aslVTKFormatReaders.h
Go to the documentation of this file.
1
/*
2
* Advanced Simulation Library <http://asl.org.il>
3
*
4
* Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5
*
6
*
7
* This file is part of Advanced Simulation Library (ASL).
8
*
9
* ASL is free software: you can redistribute it and/or modify it
10
* under the terms of the GNU Affero General Public License as
11
* published by the Free Software Foundation, version 3 of the License.
12
*
13
* ASL is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Affero General Public License for more details.
17
*
18
* You should have received a copy of the GNU Affero General Public License
19
* along with ASL. If not, see <http://www.gnu.org/licenses/>.
20
*
21
*/
22
23
24
#ifndef ASLVTKFORMATREADERS_H
25
#define ASLVTKFORMATREADERS_H
26
27
28
#include <stdlib.h>
29
30
#include <iostream>
31
#include <fstream>
32
#include <string>
33
#include <memory>
34
#include <
acl/aclHardware.h
>
35
#include <
data/aslDataWrapper.h
>
36
#include <
aslGenerators.h
>
37
38
using namespace
std;
39
40
namespace
agl
41
{
42
class
TrianglesList;
43
typedef
std::shared_ptr<TrianglesList>
SPTrianglesList
;
44
}
45
46
namespace
asl
47
{
48
using namespace
asl
;
49
50
// std::shared_ptr<DataWithGhostNodesACLData> SPDataWithGhostNodesACLData;
51
57
SPDataWithGhostNodesACLData
read
(
const
string
& fileName,
58
unsigned
int
arrayNum,
59
acl::CommandQueue
queue =
acl::hardware
.defaultQueue);
60
66
SPDataWithGhostNodesACLData
readSurface
(
const
string
& fileName,
67
double
dx
,
68
acl::CommandQueue
queue =
acl::hardware
.defaultQueue);
69
70
SPDataWithGhostNodesACLData
readSurface
(
const
string
& fileName,
71
Block
& b,
72
acl::CommandQueue
queue =
acl::hardware
.defaultQueue);
73
74
// read surface with offsets retative to the surface outframe
75
SPDataWithGhostNodesACLData
readSurface
(
const
string
& fileName,
76
double
dx
,
77
double
offset_X0,
double
offset_XE,
78
double
offset_Y0,
double
offset_YE,
79
double
offset_Z0,
double
offset_ZE,
80
acl::CommandQueue
queue =
acl::hardware
.defaultQueue);
81
82
}
// asl
83
84
#endif // ASLVTKFORMATREADERS_H
85
aclHardware.h
asl::read
SPDataWithGhostNodesACLData read(const string &fileName, unsigned int arrayNum, acl::CommandQueue queue=acl::hardware.defaultQueue)
asl
Advanced Simulation Library.
Definition:
aslDataInc.h:30
asl::SPDataWithGhostNodesACLData
std::shared_ptr< DataWithGhostNodesACLData > SPDataWithGhostNodesACLData
Definition:
aslGenerators.h:47
aslDataWrapper.h
asl::readSurface
SPDataWithGhostNodesACLData readSurface(const string &fileName, double dx, double offset_X0, double offset_XE, double offset_Y0, double offset_YE, double offset_Z0, double offset_ZE, acl::CommandQueue queue=acl::hardware.defaultQueue)
acl::CommandQueue
std::shared_ptr< cl::CommandQueue > CommandQueue
Definition:
acl.h:51
agl
Definition:
aslVTKFormatReaders.h:40
agl::SPTrianglesList
std::shared_ptr< TrianglesList > SPTrianglesList
Definition:
aslVTKFormatReaders.h:42
asl::dx
acl::VectorOfElements dx(const TemplateVE &a)
differential operator
asl::Block
Definition:
aslBlocks.h:56
aslGenerators.h
acl::hardware
Hardware hardware
Generated by
1.8.15