runtime dynamic link library and geometryPhasicFlow modification

This commit is contained in:
Hamidreza Norouzi
2023-02-25 05:15:17 -08:00
parent eef3906a7e
commit 7fec15e3dc
20 changed files with 160 additions and 10 deletions

View File

@ -1,8 +1,13 @@
set(SourceFiles
vtkFile.cpp
readFromTimeFolder.cpp
readControlDict.cpp
vtkFile/vtkFile.cpp
geometryPhasicFlow/Wall/Wall.cpp
geometryPhasicFlow/planeWall/planeWall.cpp
geometryPhasicFlow/stlWall/stlWall.cpp
geometryPhasicFlow/cylinderWall/cylinderWall.cpp
geometryPhasicFlow/cuboidWall/cuboidWall.cpp
)
set(link_libs Kokkos::kokkos phasicFlow Particles Geometry)

View File

@ -22,9 +22,9 @@ Licence:
#ifndef __Wall_hpp__
#define __Wall_hpp__
#include <vector>
#include "virtualConstructor.hpp"
#include "Vectors.hpp"
#include "dictionary.hpp"
namespace pFlow
@ -42,7 +42,7 @@ class Wall
{
protected:
realx3x3Vector triangles_;
std::vector<realx3x3> triangles_;
word name_;
@ -79,7 +79,7 @@ public:
//// - Methods
// -
const realx3x3Vector& triangles()const
const auto& triangles()const
{
return triangles_;
}

View File

@ -1,4 +1,5 @@
#include "cylinderWall.hpp"
#include "Vectors.hpp"
#include "line.hpp"

View File

@ -1,11 +1,6 @@
set(source_files
geometryPhasicFlow.cpp
Wall/Wall.cpp
planeWall/planeWall.cpp
stlWall/stlWall.cpp
cylinderWall/cylinderWall.cpp
cuboidWall/cuboidWall.cpp
)
set(link_lib phasicFlow Geometry Kokkos::kokkos Utilities)

View File

@ -21,6 +21,7 @@ Licence:
#include "systemControl.hpp"
#include "Wall.hpp"
#include "Vectors.hpp"
#include "multiTriSurface.hpp"
#include "geometryMotion.hpp"
#include "commandLine.hpp"
@ -34,6 +35,7 @@ using pFlow::objectFile;
using pFlow::wordVector;
using pFlow::Wall;
using pFlow::geometry;
using pFlow::realx3x3Vector;
using pFlow::multiTriSurface;
using pFlow::commandLine;
@ -92,7 +94,9 @@ int main( int argc, char* argv[] )
auto& wall = wallPtr();
REPORT(1)<<"wall type is "<<greenText(wall.typeName())<<'\n'<<endREPORT;
surface.addTriSurface(wall.name(), wall.triangles());
realx3x3Vector trinalges(wall.name());
trinalges = wall.triangles();
surface.addTriSurface(wall.name(), trinalges);
materials.push_back(wall.materialName());
motion.push_back(wall.motionName());
}