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[])
//////////////////////////////////////////////////////////////////////////
real dx = L / real(nx);
gridBuilder->addCoarseGrid(-1.0 * L, -0.5 * L, -0.5 * L,
1.0 * L, 0.5 * L, 0.5 * L, dx);
gridBuilder->addCoarseGrid(-1.0 * L, -0.8 * L, -0.8 * L,
6.0 * L, 0.8 * L, 0.8 * L, dx);
// 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
std::string stlPath = "stl/sphere02.stl";
if (useConfigFile && config.contains("STLPath")) {
stlPath = config.getValue<std::string>("STLPath");
}
std::cout << "Reading stl from " << stlPath << "." << std::endl;
Object *sphere = TriangularMesh::make(stlPath);
// std::string stlPath = "stl/sphere02.stl";
// if (useConfigFile && config.contains("STLPath")) {
// stlPath = config.getValue<std::string>("STLPath");
// }
// std::cout << "Reading stl from " << stlPath << "." << std::endl;
// Object *sphere = TriangularMesh::make(stlPath);
gridBuilder->addGeometry(sphere);
gridBuilder->setPeriodicBoundaryCondition(false, false, false);
......@@ -201,11 +201,11 @@ int main(int argc, char *argv[])
gridBuilder->setVelocityBoundaryCondition(SideType::GEOMETRY, 0.0, 0.0, 0.0);
gridBuilder->setPressureBoundaryCondition(SideType::PX, 0.0); // set pressure boundary condition last
bcFactory.setNoSlipBoundaryCondition(BoundaryConditionFactory::NoSlipBC::NoSlipCompressible);
bcFactory.setVelocityBoundaryCondition(BoundaryConditionFactory::VelocityBC::VelocityCompressible);
bcFactory.setSlipBoundaryCondition(BoundaryConditionFactory::SlipBC::SlipCompressible);
bcFactory.setPressureBoundaryCondition(BoundaryConditionFactory::PressureBC::PressureNonEquilibriumCompressible);
bcFactory.setGeometryBoundaryCondition(BoundaryConditionFactory::NoSlipBC::NoSlipCompressible);
//////////////////////////////////////////////////////////////////////////
// setup to copy mesh to simulation
//////////////////////////////////////////////////////////////////////////
......
......@@ -2,7 +2,7 @@
# informations for Writing
##################################################
OutputPath = output/Sphere/
OutputPrefix = Sphere
OutputPrefix = SphereOpenSource
##################################################
# simulation time
......@@ -13,4 +13,4 @@ OutputPrefix = Sphere
##################################################
# input
##################################################
STLPath = stl/Sphere/sphere02.stl
\ No newline at end of file
STLPath = apps/gpu/FlowAroundSphere/sphere02.stl
\ 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