mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Small adjustments
This commit is contained in:
@ -211,7 +211,7 @@ void Foam::CV3D::insertGrid()
|
||||
|
||||
void Foam::CV3D::relaxPoints(const scalar relaxation)
|
||||
{
|
||||
Info<< "Calculating new points: " << endl;
|
||||
Info<< "Calculating new points: " << nl << endl;
|
||||
|
||||
for
|
||||
(
|
||||
@ -260,6 +260,8 @@ void Foam::CV3D::boundaryConform()
|
||||
|
||||
void Foam::CV3D::removeSurfacePointPairs()
|
||||
{
|
||||
Info<< "Removing surface point pairs." << nl << endl;
|
||||
|
||||
for
|
||||
(
|
||||
Triangulation::Finite_vertices_iterator vit = finite_vertices_begin();
|
||||
|
||||
@ -94,10 +94,13 @@ inline void Foam::CV3D::insertPointPair
|
||||
|
||||
void Foam::CV3D::movePoint(const Vertex_handle& vh, const point& p)
|
||||
{
|
||||
label nv = vh->index();
|
||||
label vi = vh->index();
|
||||
|
||||
remove(vh);
|
||||
insert(toPoint(p))->index() = nv;
|
||||
// remove(vh);
|
||||
// insert(toPoint(p))->index() = vi;
|
||||
|
||||
move_point(vh, toPoint(p));
|
||||
vh->index() = vi;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
||||
mesh.boundaryConform();
|
||||
}
|
||||
|
||||
scalar relaxation = 1;
|
||||
scalar relaxation = 1.0;
|
||||
|
||||
for (int iter=1; iter<=nIterations; iter++)
|
||||
{
|
||||
|
||||
@ -303,6 +303,13 @@ void Foam::CV3D::smoothEdgePositions
|
||||
}
|
||||
|
||||
|
||||
// If no points are left on the edges then do not progress any further.
|
||||
|
||||
if (!edgePoints.size())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Re-establish the correct distances and jumps
|
||||
|
||||
edgeDistances.clear();
|
||||
|
||||
Reference in New Issue
Block a user