Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dirichlet model 'stepSize' could be a vector, also add 'initValue' vector #29

Open
ritukeshbharali opened this issue May 4, 2024 · 0 comments

Comments

@ritukeshbharali
Copy link
Owner

The current Dirichlet model allows a scalar 'stepSize' and vector 'factors', where the in-homogeneous Dirichlet values (factor not equal to zero) for dof type 'i' is modified as: total[i] += factor[i] * stepSize. The input file code snippet looks like this:

* model =
* {
* type = "Dirichlet";
* nodeGroups = "TopNodes";
* dofs = "dy";
* factors = [ -1.];
* stepSize = 0.001;
* };

Instead, introduce a more generic Dirichlet expression, total[i] += factor[i] * stepSize[i], where 'i' is a dof type associated with a node group. Also, total[i] would assume values from initVals[i]. In this way, one can model homogeneous conditions with factor and initVal set to zero, in-homogeneous but constant with initVal not equal to zero and factor zero, and in-homogeneous and temporally changing values with non-zero factor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant