Skip to content
Snippets Groups Projects
Commit ee09746c authored by Emmanuel Labourasse's avatar Emmanuel Labourasse
Browse files

hydroable version

parent f378a5f7
Branches
Tags
1 merge request!163Hyperelastic Lagrangian solver (Eucclhyd or Glace-type).
This commit is part of merge request !163. Comments created here will be created in the context of that merge request.
...@@ -235,7 +235,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS ...@@ -235,7 +235,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
for (size_t j = 0; j < node_to_cell.size(); ++j) { for (size_t j = 0; j < node_to_cell.size(); ++j) {
const CellId J = node_to_cell[j]; const CellId J = node_to_cell[j];
const unsigned int R = node_local_number_in_its_cells[j]; const unsigned int R = node_local_number_in_its_cells[j];
br += Ajr(J, R) * u[J] + sigma[J] * Cjr(J, R); br += Ajr(J, R) * u[J] - sigma[J] * Cjr(J, R);
} }
b[r] = br; b[r] = br;
...@@ -361,7 +361,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS ...@@ -361,7 +361,7 @@ class HyperelasticSolverHandler::HyperelasticSolver final : public HyperelasticS
const auto& cell_nodes = cell_to_node_matrix[j]; const auto& cell_nodes = cell_to_node_matrix[j];
for (size_t r = 0; r < cell_nodes.size(); ++r) { for (size_t r = 0; r < cell_nodes.size(); ++r) {
F(j, r) = Ajr(j, r) * (u[j] - ur[cell_nodes[r]]) + sigma[j] * Cjr(j, r); F(j, r) = -Ajr(j, r) * (u[j] - ur[cell_nodes[r]]) + sigma[j] * Cjr(j, r);
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment