/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) YEAR AUTHOR, AFFILIATION ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM 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. OpenFOAM 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 OpenFOAM. If not, see . Description Template for use with codeStream. \*---------------------------------------------------------------------------*/ #include "dictionary.H" #include "Ostream.H" #include "Pstream.H" #include "pointField.H" #include "tensor.H" #include "unitConversion.H" //{{{ begin codeInclude #line 45 "/home/mkf1g21/cylinder/system/blockMeshDict/#codeStream" #include "pointField.H" //}}} end codeInclude // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam { // * * * * * * * * * * * * * * * Local Functions * * * * * * * * * * * * * * // //{{{ begin localCode //}}} end localCode // * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * // extern "C" void codeStream_57d480628413101a22b1e502419ba9eaf0f82ffd(Foam::Ostream& os, const Foam::dictionary& dict) { //{{{ begin code #line 50 "/home/mkf1g21/cylinder/system/blockMeshDict/#codeStream" pointField points ({ /* 0*/ { 0.5, 0, 0 }, /* 1*/ { 1, 0, 0 }, /* 2*/ { 8, 0, 0 }, /* 3*/ { 8, 0.7071067811865476, 0 }, /* 4*/ { 0.7071067811865476, 0.7071067811865476, 0 }, /* 5*/ { 0.3535533905932738, 0.3535533905932738, 0 }, /* 6*/ { 8, 3, 0 }, /* 7*/ { 0.7071067811865476, 3, 0 }, /* 8*/ { 0, 3, 0 }, /* 9*/ { 0, 1, 0 }, /*10*/ { 0, 0.5, 0 }, /*11*/ { -0.5, 0, 0 }, /*12*/ { -1, 0, 0 }, /*13*/ { -2, 0, 0 }, /*14*/ { -2, 0.7071067811865476, 0 }, /*15*/ { -0.7071067811865476, 0.7071067811865476, 0 }, /*16*/ { -0.3535533905932738, 0.3535533905932738, 0 }, /*17*/ { -2, 3, 0 }, /*18*/ { -0.7071067811865476, 3, 0 } }); // Duplicate z points for zmax const label sz = points.size(); points.resize(2*sz); for (label i = 0; i < sz; ++i) { const point& pt = points[i]; points[i + sz] = point(pt.x(), pt.y(), 0.1); } os << points; //}}} end code } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam // ************************************************************************* //