ASL
0.1.7
Advanced Simulation Library
|
Go to the documentation of this file.
50 int main(
int argc,
char* argv[])
56 appParamsManager.
load(argc, argv);
68 std::cout <<
"Data initialization... ";
74 .45*
makeAVec(gSize[1],gSize[1],gSize[2])));
78 auto ballMapMem(asl::generateDataContainerACL_SP<FlT>(block, 1, 1u));
82 std::cout <<
"Finished" << endl;
84 std::cout <<
"Numerics initialization... ";
96 std::vector<asl::SPNumMethod> bc;
97 std::vector<asl::SPNumMethod> bcVis;
108 std::cout <<
"Finished" << endl;
109 std::cout <<
"Computing...";
115 writer.
addVector(
"v", *lbgk->getVelocity());
124 for (
unsigned int i(1); i < 1001; ++i)
138 cout <<
"Finished" << endl;
140 cout <<
"Computation statistic:" << endl;
141 cout <<
"Real Time = " << timer.
realTime() <<
"; Processor Time = "
SPDistanceFunction generateDFCylinderInf(double r, const AVec< double > &l, const AVec< double > &c)
generates infinite cylinder
SPDataWrapperACL generateDataContainer_SP(const Block &b, const acl::VectorOfElements &a)
const double processorLoad() const
Numerical method for fluid flow.
SPNumMethod generateBCNoSlipVel(SPLBGK nmU, SPAbstractDataWithGhostNodes map)
const VectorTemplate & d3q15()
Vector template.
void addVector(std::string name, AbstractData &data)
acl::VectorOfElements dx(const TemplateVE &a)
differential operator
void load(int argc, char *argv[])
std::shared_ptr< LBGKUtilities > SPLBGKUtilities
asl::UValue< double > Param
void addScalars(std::string name, AbstractData &data)
std::shared_ptr< LBGK > SPLBGK
SPBCond generateBCNoSlip(SPLBGK nm, const std::vector< SlicesNames > &sl)
void initAll(std::vector< T * > &v)
contains different kernels for preprocessing and posprocessing of data used by LBGK
void initData(SPAbstractData d, double a)
VectorOfElements generateVEConstant(T a)
Generates VectorOfElements with 1 Element acl::Constant with value a.
const double realTime() const
int main(int argc, char *argv[])
void executeAll(std::vector< T * > &v)
const double processorTime() const
SPBCond generateBCConstantPressure(SPLBGK nm, double p, const std::vector< SlicesNames > &sl)