Re: [deal.II] Function parser for tensor function

2019-09-11 Thread Wolfgang Bangerth
On 9/6/19 1:36 AM, Konrad wrote:
> 
> I was wondering if there is a simple way to parse input (e.g., from a 
> parameter file) and use it similarly to the FunctionParser class (which 
> works for vector valued functions) just for a TensorFunction.

Nothing I would know already does that. But the FunctionParser class 
supports vector-valued functions, and it should not be very difficult to 
write a little wrapper that is derived from TensorFunction, takes a 
Function object as constructor argument, and simply interprets the 
vector components returned by the latter as the tensor components of a 
TensorFunction.

Of course, you could also copy FunctionParser to TensorFunctionParser 
and make the relevant adjustments. That also should not be very difficult.

In either case, this would actually make for a nice addition to the library!

Best
  W.

-- 

Wolfgang Bangerth  email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/b662a871-d53b-e855-b9a9-8b957264bd47%40colostate.edu.


[deal.II] Function parser for tensor function

2019-09-06 Thread Konrad
Dear deal.ii community,

I was wondering if there is a simple way to parse input (e.g., from a 
parameter file) and use it similarly to the FunctionParser class (which 
works for vector valued functions) just for a TensorFunction.

Anyone did that or something similar?

Best,
Konrad

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/4108d4ed-e579-4ca5-967f-3221067e7a3a%40googlegroups.com.