Small adjustments

This commit is contained in:
graham
2008-09-26 18:50:51 +01:00
parent 5501509c01
commit 6eea6d6a3d
4 changed files with 17 additions and 5 deletions

View File

@ -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();

View File

@ -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;
}

View File

@ -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++)
{

View File

@ -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();