grinsfem / grins

Multiphysics Finite Element package built on libMesh
http://grinsfem.github.io
Other
47 stars 39 forks source link

parsed_dirichlet_component Boundary Condition Option #585

Closed pbauman closed 5 years ago

pbauman commented 5 years ago

Before this PR, when the user had a multicomponent Variable and only set a subset of the Dirichlet values, the remainder were automatically set to zero (this is useful for example in reacting flow applications were we only want to set a handful of species mass fractions out of a set of 300+). However, there are cases were we don't want them to be zeroed (solid mechanics is where this is cropping up for me). So I've updated the ParsedDirichletBCFactoryBase to handle this and instantiated new BCFactories that support this. The option is parsed_dirichlet_component which is the new behavior and the previous behavior is kept at parsed_dirichlet. Similarly for parsed_fem_dirichlet_component. Open to suggestions if someone has a better name.