Separate mechanics, fracture, and thermal models#295
Conversation
|
I am in favor of this ... Maybe we should think about some changes we want to do until 1.0 and when we want that to be. |
To be honest we've changed interfaces a number of times in this version, but I'm trying to reduce that as we grow. You're right about the deprecation cycle - let's wait on that. I still haven't come up with a good naming for |
|
@JBludau I can split out some of the simpler changes (tag renaming) if you want, but can you review? This is kind of blocking the custom properties. Presuming we keep the older heavily inherited models, the plan would be to only support constant material properties in those |
JBludau
left a comment
There was a problem hiding this comment.
I think this is going into the right direction. Not sure though if Experimental is the right call here, given that we already plan on using it in the internals
| : public Experimental::ThermalForceModel< | ||
| MechanicsModel<PMB, Elastic>, | ||
| ThermalModel<TemperatureDependent, TemperatureType>> |
There was a problem hiding this comment.
hmm ... with this the new model is no longer in experimental, right? If we implement our backward compatibility with it is per definition the new way of doing things.
Also, we would be recommending to use a method in Experimental in our examples. Maybe we should just leap and promote it to the main namespace in one go?
Or, if we want to slowly get used to it: put it in Impl and allow us developers to just use it for testing until we are sure it is ready.
But I don't know the best way forward
| ThermalModel( const base_fracture_type fracture, | ||
| const TemperatureType _temp, const double _alpha, | ||
| const double _temp0 ) | ||
| : base_fracture_type( fracture ) |
There was a problem hiding this comment.
Ok, so we don't take it by reference here ... so that should be fine with our device capture
The tag rename is pretty straightforward so I think it is fine doing it in one go here |
6f931a5 to
132d984
Compare
|
@JBludau this sat a long time in attempting not to break everything at the end of the quarter. Found one more thing in discussion with Pablo - LPS still isn't ready for thermomechanics. I'll merge soon unless there's a new reason to hold |
Update all examples and tests
6ba884f to
131ee2a
Compare
Separate mechanics, fracture, and thermal models
ForceModeluses combinations ofMechanicsModelandFractureModelto run dynamics.ThermalForceModeluses combinations ofMechanicsModel,FractureModel, andThermalModel. It is likely not obvious why only certain options are availableFracturetag withCriticalStretchsince that's actually how we model bond failureTODO: agree on naming. In particular, I'm not sure I want
Experimentalnamespace, but it was a quick easy choice. May be time for a discussion on deprecation timelines of the old models as well