Hello Yuxiang,
You can set an arbitrary boundary condition for
all the system variables using a BdyFunction. Examples of its usage
are provided in the fem_system/fem_system_ex1 and
adjoints/adjoints_ex3 examples.
Thanks.
Vikram Garg
vikramvgarg.github.io/
On Fri, Mar 1, 2019 at 10:33 PM Yuxiang Wang <[email protected]> wrote:
>
> Dear all,
>
> When applying a Dirichlet boundary condition, is there a way to get a
> function that always returns a constant vector? For example, for var list
> of {0, 1, 2} we always return {2.3, 2.9, 3.5} for the three degrees of
> freedom at each node? It's just a function wrapper of:
>
> DenseVector<Number> cv(3);
> cv(0) = 2.3;
> cv(1) = 2.9;
> cv(2) = 3.5;
>
> If such a function would be helpful, we can help commit one.
>
> Thanks!
>
> Shawn
>
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users