first modifications for coupling

This commit is contained in:
hamidrezanorouzi
2022-12-03 12:12:56 +03:30
parent 14ef70bfdf
commit 2b514d0302
31 changed files with 701 additions and 47 deletions

View File

@ -2,6 +2,6 @@
set(source_files
iterateGeometry.C
)
set(link_lib phasicFlow Geometry MotionModel Kokkos::kokkos)
set(link_lib phasicFlow Geometry MotionModel Kokkos::kokkos Utilities)
pFlow_make_executable_install(iterateGeometry source_files link_lib)

View File

@ -20,12 +20,28 @@ Licence:
#include "systemControl.H"
#include "geometryMotion.H"
#include "commandLine.H"
#include "readControlDict.H"
using pFlow::commandLine;
int main( int argc, char* argv[] )
{
commandLine cmds(
"iterateGeometry",
"Performs simulation without particles, only geometry is solved");
bool isCoupling = false;
cmds.add_flag(
"-c,--coupling",
isCoupling,
"Is this a fluid-particle coupling simulation?");
if(!cmds.parse(argc, argv)) return 0;
// this should be palced in each main
#include "initialize_Control.H"

View File

@ -2,6 +2,6 @@
set(source_files
sphereGranFlow.C
)
set(link_lib Kokkos::kokkos phasicFlow Particles Geometry Property Interaction Interaction)
set(link_lib Kokkos::kokkos phasicFlow Particles Geometry Property Interaction Interaction Utilities)
pFlow_make_executable_install(sphereGranFlow source_files link_lib)

View File

@ -26,6 +26,7 @@ Licence:
#include "contactSearch.H"
#include "sphereInteraction.H"
#include "commandLine.H"
#include "readControlDict.H"
using pFlow::output;
using pFlow::endl;
@ -47,6 +48,8 @@ commandLine cmds(
"DEM solver for non-cohesive spherical particles with particle insertion "
"mechanism and moving geometry");
bool isCoupling = false;
if(!cmds.parse(argc, argv)) return 0;
// this should be palced in each main