DataFactory.h
Go to the documentation of this file.
/*****************************************************************************
*
* Copyright (c) 2003-2017 by The University of Queensland
* http://www.uq.edu.au
*
* Primary Business: Queensland, Australia
* Licensed under the Apache License, version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
* Development 2012-2013 by School of Earth Sciences
* Development from 2014 by Centre for Geoscience Computing (GeoComp)
*
*****************************************************************************/
#if !defined escript_DataFactory_20040721_H
#define escript_DataFactory_20040721_H
#include "system_dep.h"
#include "AbstractDomain.h"
#include "FunctionSpace.h"
#include "Data.h"
#include <boost/python/object.hpp>
namespace escript {
ESCRIPT_DLL_API Data
Scalar(double value,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API Data
Scalar(DataTypes::cplx_t value,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API
Data
ScalarFromObj(boost::python::object o,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API Data
Vector(double value,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API
Data
VectorFromObj(boost::python::object o,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API Data
Tensor(double value,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API
Data
TensorFromObj(boost::python::object o,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API Data
Tensor3(double value,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API
Data
Tensor3FromObj(boost::python::object o,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API Data
Tensor4(double value,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API
Data
Tensor4FromObj(boost::python::object o,
const FunctionSpace& what=FunctionSpace(),
bool expanded=false);
ESCRIPT_DLL_API Data
load(const std::string fileName,
const AbstractDomain& domain);
ESCRIPT_DLL_API bool
loadConfigured();
ESCRIPT_DLL_API Data
convertToData(const boost::python::object& value,
const FunctionSpace& what=FunctionSpace());
} // end of namespace
#endif
escript::Tensor4
Data Tensor4(double value, const FunctionSpace &what, bool expanded)
Return a Data object containing tensor4 datapoints. ie: rank 4 data-points.
Definition: DataFactory.cpp:184
escript::loadConfigured
bool loadConfigured()
returns true if the load funtion is configured.
Definition: DataFactory.cpp:692
escript::ScalarFromObj
Data ScalarFromObj(boost::python::object o, const FunctionSpace &what, bool expanded)
Python interface for the Scalar factory.
Definition: DataFactory.cpp:63
escript::Tensor4FromObj
Data Tensor4FromObj(bp::object o, const FunctionSpace &what, bool expanded)
Definition: DataFactory.cpp:197
escript
Definition: AbstractContinuousDomain.cpp:22
escript::TensorFromObj
Data TensorFromObj(bp::object o, const FunctionSpace &what, bool expanded)
Definition: DataFactory.cpp:121
Data.h
escript::convertToData
Data convertToData(const bp::object &value, const FunctionSpace &what)
Definition: DataFactory.cpp:701
system_dep.h
FunctionSpace.h
escript::Vector
Data Vector(double value, const FunctionSpace &what, bool expanded)
Return a Data object containing vector data-points. ie: rank 1 data-points.
Definition: DataFactory.cpp:84
escript::Tensor3
Data Tensor3(double value, const FunctionSpace &what, bool expanded)
Return a Data object containing tensor3 datapoints. ie: rank 3 data-points.
Definition: DataFactory.cpp:146
escript::load
Data load(const std::string fileName, const AbstractDomain &domain)
reads Data on domain from file in netCDF format
Definition: DataFactory.cpp:482
escript::DataTypes::cplx_t
std::complex< real_t > cplx_t
complex data type
Definition: DataTypes.h:53
escript::Scalar
Data Scalar(double value, const FunctionSpace &what, bool expanded)
A collection of factory functions for creating Data objects which contain data points of various shap...
Definition: DataFactory.cpp:48
AbstractDomain.h
ESCRIPT_DLL_API
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:29
escript::Tensor3FromObj
Data Tensor3FromObj(bp::object o, const FunctionSpace &what, bool expanded)
Definition: DataFactory.cpp:159
escript::VectorFromObj
Data VectorFromObj(bp::object o, const FunctionSpace &what, bool expanded)
Definition: DataFactory.cpp:90
escript::Tensor
Data Tensor(double value, const FunctionSpace &what, bool expanded)
Return a Data object containing tensor datapoints. ie: rank 2 data-points.
Definition: DataFactory.cpp:108