adamantine-sim / adamantine

Software to simulate heat transfer for additive manufacturing
https://adamantine-sim.github.io/adamantine/
Other
34 stars 10 forks source link

Add control for mechanical BCs #180

Closed stvdwtt closed 1 year ago

stvdwtt commented 1 year ago

Adds the ability to choose which faces have zero Dirichlet mechanical BCs (ie mechanically fixed BCs). The direct motivation is that the face used for the MechanicalPhysics tests is different from what makes the most sense for "real" calculations.

stvdwtt commented 1 year ago

@Rombur, that makes sense, I made those changes. I still need to figure out what's going on with the "elastostatic" test, which is failing. It might just be that the deformation due to the downward body force is much smaller when the bottom surface is constrained and the tolerance and/or error comparison needs to be changed.

Rombur commented 1 year ago

You can find the error here. You need to check but it looks like it's a round-off error.

stvdwtt commented 1 year ago

I changed how the solutions were compared, going from BOOST_CHECK to BOOST_CHECK_SMALL. There were small differences between the solutions where the solutions were zero that are related to the finite solver tolerances. The tests now pass on my machine.