ppap4lmp  0.7.2
py_pro_thickness_profile.cpp
Go to the documentation of this file.
1 
9 
11 {
12  py::class_<ProThicknessProfile,PyProcessor<ProThicknessProfile>,Processor,ShPtr<ProThicknessProfile>>(m, "ProThicknessProfile")
13  .def(py::init<const ElPtr &,const ElPtr &>())
14  .def(py::init<const Vec<std::pair<ElPtr,ElPtr>> &>())
15  .def("set_grid", &ProThicknessProfile::set_grid)
16  .def("set_offset", &ProThicknessProfile::set_offset)
17  .def(
18  "shift_half_delta", &ProThicknessProfile::shift_half_delta,
19  py::arg("shift_half_") = true)
20  .def(
21  "get_conditions", &ProThicknessProfile::get_conditions)
22  .def(
23  "get_profiles", &ProThicknessProfile::get_profiles);
24 }
const Vec< ArrayXXd > & get_profiles()
Get a sequence of two-dimensional profile of film thickness as list of two-dimensional arrays...
void py_pro_thickness_profile(py::module &m)
Bind ProThicknessProfile class to Python.
void set_offset(double offset_)
Specify the offset for thickness (height).
const Vec< Json > & get_conditions()
Get computation conditions (origin of computed area, grid width and the number of grads) used by this...
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
Definition: std.h:27
Processor analyzes data contained in one or more Generator objects.
Definition: processor.h:18
void shift_half_delta(bool shift_half_=true)
Increment coordinates of the grid points by half the grid width. By default, grids in the x direction...
This file is for binding ProThicknessProfile class to Python.
void set_grid(int nx_, int ny_)
Specify the number of grids in the x and y directions.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
Definition: std.h:16