/*------------------------------- phasicFlow --------------------------------- O C enter of O O E ngineering and O O M ultiscale modeling of OOOOOOO F luid flow ------------------------------------------------------------------------------ Copyright (C): www.cemf.ir email: hamid.r.norouzi AT gmail.com ------------------------------------------------------------------------------ Licence: This file is part of phasicFlow code. It is a free software for simulating granular and multiphase flows. You can redistribute it and/or modify it under the terms of GNU General Public License v3 or any other later versions. phasicFlow is distributed to help others in their research in the field of granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -----------------------------------------------------------------------------*/ #include "planeWall.hpp" #include "line.hpp" bool pFlow::planeWall::readPlaneWall ( const dictionary& dict ) { auto p1 = dict.getVal("p1"); auto p2 = dict.getVal("p2"); auto p3 = dict.getVal("p3"); auto p4 = dict.getVal("p4"); auto numDiv12 = max(dict.getValOrSet("numDiv12",1),1); auto numDiv23 = max(dict.getValOrSet("numDiv23",1),1); if(!checkFlatness(p1,p2,p3,p4)) { fatalErrorInFunction << "points p1, p2, p3 and p4 do not form a plane wall in dictionary " << dict.globalName()<