vector valued ConstantFunction with different values in each component

22 views
Skip to first unread message

Lei Qiao

unread,
Aug 8, 2015, 3:45:16 PM8/8/15
to deal.II User Group
Dear all,

Now the ConstantFunction in deal.ii can return vector function value but all the components of returned vector are in the same value.
Is there any class can return a vector value with different values in each component?

Or I have to create such a class by myself?

Best,
Lei

Wolfgang Bangerth

unread,
Aug 8, 2015, 3:50:46 PM8/8/15
to dea...@googlegroups.com
On 08/08/2015 02:45 PM, Lei Qiao wrote:
> Dear all,
>
> Now the ConstantFunction in deal.ii can return vector function value but all
> the components of returned vector are in the same value.
> Is there any class can return a vector value with different values in each
> component?

I don't think there is a class that can have completely different values in
the various components. But there are functions that allow you to specify a
value (or a function) for one component and set all of the others to zero.

Best
W>


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@math.tamu.edu
www: http://www.math.tamu.edu/~bangerth/

Lei Qiao

unread,
Aug 8, 2015, 4:07:57 PM8/8/15
to deal.II User Group


On Saturday, August 8, 2015 at 2:50:46 PM UTC-5, bangerth wrote:
On 08/08/2015 02:45 PM, Lei Qiao wrote:
> Dear all,
>
> Now the ConstantFunction in deal.ii can return vector function value but all
> the components of returned vector are in the same value.
> Is there any class can return a vector value with different values in each
> component?

I don't think there is a class that can have completely different values in
the various components. But there are functions that allow you to specify a
value (or a function) for one component and set all of the others to zero.

 I believe there is really no such a class when you say no.
I will try to create it.

Best,
Lei

Sungho Yoon

unread,
Aug 8, 2015, 7:30:44 PM8/8/15
to deal.II User Group
hahaha. :) Both are correct to me.

2015년 8월 8일 토요일 오후 1시 7분 57초 UTC-7, Lei Qiao 님의 말:
Reply all
Reply to author
Forward
0 new messages