MCPcopy Create free account
hub / github.com/NGSolve/ngsolve / AddEnergy

Method AddEnergy

comp/contact.cpp:965–973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963 }
964
965 void ContactBoundary::AddEnergy(shared_ptr<CoefficientFunction> form,
966 bool deformed)
967 {
968 energies.Append(make_shared<ContactEnergy>(form, deformed));
969 if (deformed)
970 deformed_energies.Append (energies.Last());
971 else
972 undeformed_energies.Append (energies.Last());
973 }
974
975 void ContactBoundary::AddIntegrator(shared_ptr<CoefficientFunction> form,
976 bool deformed)

Callers 1

GetFormsFunction · 0.95

Calls 1

AppendMethod · 0.45

Tested by 1

GetFormsFunction · 0.76