Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvment and bugfixing in CFiniteElementVec #105

Merged
merged 15 commits into from
Aug 7, 2018
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions FEM/fem_ele_std.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8535,7 +8535,7 @@ void CFiniteElementStd::Assemble_strainCPL(const int phase)
NodalVal4[i] = -fac * (dm_pcs->GetNodeValue(nodes[i], Idx_dm1[2])
- dm_pcs->GetNodeValue(nodes[i], Idx_dm0[2]));
}
else if (Residual == 1) // Mono
else if (Residual == 1) // Mono and plastic

// du is stored in u_0
for (i = 0; i < nnodesHQ; i++)
Expand Down Expand Up @@ -10630,14 +10630,15 @@ void CFiniteElementStd::Assemble_RHS_M()
for (i = nnodes; i < nnodesHQ; i++)
nodes[i] = MeshElement->nodes_index[i];

if (dm_pcs->type == 42) // Monolitihc scheme.
// If monolithic scheme and plastic deformation.
if (dm_pcs->type == 42 && pcs_deformation > 100)

for (i = 0; i < nnodesHQ; i++)
{
NodalVal2[i] = dm_pcs->GetNodeValue(nodes[i], Idx_dm1[0]);
NodalVal3[i] = dm_pcs->GetNodeValue(nodes[i], Idx_dm1[1]);
NodalVal2[i] = dm_pcs->GetNodeValue(nodes[i], Idx_dm0[0]);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed a bug in the monolithic H2M.

NodalVal3[i] = dm_pcs->GetNodeValue(nodes[i], Idx_dm0[1]);
if (dim == 3) // 3D.
NodalVal4[i] = dm_pcs->GetNodeValue(nodes[i], Idx_dm1[2]);
NodalVal4[i] = dm_pcs->GetNodeValue(nodes[i], Idx_dm0[2]);
}
else
for (i = 0; i < nnodesHQ; i++)
Expand Down
Loading