Corrections for Abaqus surface writing.

This also includes more indentation changes.
This commit is contained in:
Duncan McDougall 2020-06-26 11:03:25 +01:00
parent 4405db8e41
commit 3d7ab32868
3 changed files with 720 additions and 698 deletions

View File

@ -141,7 +141,7 @@ void WriteAbaqusSurfaceElements(const Mesh & mesh,
outfile << el.PNum(2) << ", ";
outfile << el.PNum(3) << "\n";
}
else if (non == 10)
else if (non == 6)
{
outfile << el.PNum(1) << ", ";
outfile << el.PNum(2) << ", ";

File diff suppressed because it is too large Load Diff

View File

@ -636,9 +636,12 @@ void STLTopology :: FindNeighbourTrigs()
int ne = GetNTE();
for (int i = 1; i <= nt; i++)
{
GetTriangle(i).flags.toperror = 0;
}
for (int i = 1; i <= nt; i++)
{
for (int j = 1; j <= 3; j++)
{
const STLTopEdge & edge = GetTopEdge (GetTriangle(i).EdgeNum(j));
@ -648,6 +651,7 @@ void STLTopology :: FindNeighbourTrigs()
GetTriangle(i).flags.toperror = 1;
}
}
}
for (int i = 1; i <= ne; i++)
{
@ -668,13 +672,17 @@ void STLTopology :: FindNeighbourTrigs()
for (int j = 1; j <= 3; j++)
{
const STLTriangle & nbt = GetTriangle (t.NBTrigNum(j));
if (!t.IsNeighbourFrom (nbt))
if (!t.IsNeighbourFrom (nbt))
{
orientation_ok = 0;
}
}
}
}
else
{
orientation_ok = 0;
}
@ -835,7 +843,13 @@ void STLTopology :: FindNeighbourTrigs()
found = 0;
for (int ii = 1; ii <= NONeighbourTrigs(i); ii++)
{if (NeighbourTrig(i,ii) == tr) {found = 1;break;};}
{
if (NeighbourTrig(i,ii) == tr)
{
found = 1;
break;
}
}
if (! found) {AddNeighbourTrig(i,tr);}
}
}