Skip to content
Snippets Groups Projects
Commit 3839ea16 authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Move Sphere stl to app folder and use larger grid

parent f70453e2
No related branches found
No related tags found
1 merge request!122Merge changes from develop into open source
...@@ -144,19 +144,19 @@ int main(int argc, char *argv[]) ...@@ -144,19 +144,19 @@ int main(int argc, char *argv[])
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
real dx = L / real(nx); real dx = L / real(nx);
gridBuilder->addCoarseGrid(-1.0 * L, -0.5 * L, -0.5 * L, gridBuilder->addCoarseGrid(-1.0 * L, -0.8 * L, -0.8 * L,
1.0 * L, 0.5 * L, 0.5 * L, dx); 6.0 * L, 0.8 * L, 0.8 * L, dx);
// use primitive // use primitive
// Object *sphere = new Sphere(0.0, 0.0, 0.0, dSphere / 2.0); Object *sphere = new Sphere(0.0, 0.0, 0.0, dSphere / 2.0);
// use stl // use stl
std::string stlPath = "stl/sphere02.stl"; // std::string stlPath = "stl/sphere02.stl";
if (useConfigFile && config.contains("STLPath")) { // if (useConfigFile && config.contains("STLPath")) {
stlPath = config.getValue<std::string>("STLPath"); // stlPath = config.getValue<std::string>("STLPath");
} // }
std::cout << "Reading stl from " << stlPath << "." << std::endl; // std::cout << "Reading stl from " << stlPath << "." << std::endl;
Object *sphere = TriangularMesh::make(stlPath); // Object *sphere = TriangularMesh::make(stlPath);
gridBuilder->addGeometry(sphere); gridBuilder->addGeometry(sphere);
gridBuilder->setPeriodicBoundaryCondition(false, false, false); gridBuilder->setPeriodicBoundaryCondition(false, false, false);
...@@ -201,11 +201,11 @@ int main(int argc, char *argv[]) ...@@ -201,11 +201,11 @@ int main(int argc, char *argv[])
gridBuilder->setVelocityBoundaryCondition(SideType::GEOMETRY, 0.0, 0.0, 0.0); gridBuilder->setVelocityBoundaryCondition(SideType::GEOMETRY, 0.0, 0.0, 0.0);
gridBuilder->setPressureBoundaryCondition(SideType::PX, 0.0); // set pressure boundary condition last gridBuilder->setPressureBoundaryCondition(SideType::PX, 0.0); // set pressure boundary condition last
bcFactory.setNoSlipBoundaryCondition(BoundaryConditionFactory::NoSlipBC::NoSlipCompressible);
bcFactory.setVelocityBoundaryCondition(BoundaryConditionFactory::VelocityBC::VelocityCompressible); bcFactory.setVelocityBoundaryCondition(BoundaryConditionFactory::VelocityBC::VelocityCompressible);
bcFactory.setSlipBoundaryCondition(BoundaryConditionFactory::SlipBC::SlipCompressible); bcFactory.setSlipBoundaryCondition(BoundaryConditionFactory::SlipBC::SlipCompressible);
bcFactory.setPressureBoundaryCondition(BoundaryConditionFactory::PressureBC::PressureNonEquilibriumCompressible); bcFactory.setPressureBoundaryCondition(BoundaryConditionFactory::PressureBC::PressureNonEquilibriumCompressible);
bcFactory.setGeometryBoundaryCondition(BoundaryConditionFactory::NoSlipBC::NoSlipCompressible); bcFactory.setGeometryBoundaryCondition(BoundaryConditionFactory::NoSlipBC::NoSlipCompressible);
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// setup to copy mesh to simulation // setup to copy mesh to simulation
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# informations for Writing # informations for Writing
################################################## ##################################################
OutputPath = output/Sphere/ OutputPath = output/Sphere/
OutputPrefix = Sphere OutputPrefix = SphereOpenSource
################################################## ##################################################
# simulation time # simulation time
...@@ -13,4 +13,4 @@ OutputPrefix = Sphere ...@@ -13,4 +13,4 @@ OutputPrefix = Sphere
################################################## ##################################################
# input # input
################################################## ##################################################
STLPath = stl/Sphere/sphere02.stl STLPath = apps/gpu/FlowAroundSphere/sphere02.stl
\ No newline at end of file \ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment