Reply To: How to create 2D triangle ?
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › How to create 2D triangle ? › Reply To: How to create 2D triangle ?
October 27, 2021 at 8:47 am
#6112
Fany
Participant
Hi Adrian,
Glad to hear the new release. By the way, in the present vision 1.4, Does the parallelepiped version of creating a 2D cuboid achieve by setting the parameter Theta? If does, the the code below should include the parameter theta?
template <typename S>
IndicatorCuboid2D<S>::IndicatorCuboid2D(S xLength, S yLength, Vector<S,2> center, S theta )
: _center(center), _xLength(xLength), _yLength(yLength), _theta(-theta)
{
this->_myMin = {_center[0] - _xLength/2., _center[1] - _yLength/2.};
this->_myMax = {_center[0] + _xLength/2., _center[1] + _yLength/2.};
}