mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
runtime dynamic link library and geometryPhasicFlow modification
This commit is contained in:
@ -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)
|
||||
|
@ -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_;
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
#include "cylinderWall.hpp"
|
||||
#include "Vectors.hpp"
|
||||
#include "line.hpp"
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user