Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-02-28 Thread Wolfgang Bangerth
On 2/28/20 12:49 AM, 'Maxi Miller' via deal.II User Group wrote: After additional tests I noticed that I'm not only overwriting the target_component-component with the new values, but also the other components, but with 0 instead. But instead I do not want to touch them. How can I do that (if p

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-02-27 Thread 'Maxi Miller' via deal.II User Group
After additional tests I noticed that I'm not only overwriting the target_component-component with the new values, but also the other components, but with 0 instead. But instead I do not want to touch them. How can I do that (if possible)? Thanks! Am Donnerstag, 27. Februar 2020 17:00:12 UTC+1

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-02-27 Thread 'Maxi Miller' via deal.II User Group
Yes, the lambda worked, thanks! Am Donnerstag, 27. Februar 2020 17:00:12 UTC+1 schrieb Wolfgang Bangerth: > > > > | > > Functions::InterpolatedTensorProductGridData > interpolator(this->coordinate_values, > > > this->data_storage);

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-02-27 Thread Wolfgang Bangerth
| Functions::InterpolatedTensorProductGridData interpolator(this->coordinate_values, this->data_storage); VectorFunctionFromScalarFunctionObject interpolator_object(&interpolator.value, The error... but the compilation fails

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-02-27 Thread 'Maxi Miller' via deal.II User Group
I implemented it the following way: Functions::InterpolatedTensorProductGridData interpolator(this-> coordinate_values, this->data_storage); VectorFunctionFromScalarFunctionObject interpolator_object(& interpolator.v

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-01-23 Thread Wolfgang Bangerth
On 1/23/20 7:29 AM, 'Maxi Miller' via deal.II User Group wrote: > > Why would you want to project when you can interpolate? That seems > unnecessarily expensive :-) > > I would like to have the input data (which is interpolated) as an additional > component, which then is printed togethe

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-01-23 Thread 'Maxi Miller' via deal.II User Group
Am Mittwoch, 22. Januar 2020 19:23:52 UTC+1 schrieb Wolfgang Bangerth: > > On 1/22/20 11:17 AM, 'Maxi Miller' via deal.II User Group wrote: > > As source term for calculations I am using data which is written in an > > external matrix (because it has been calculated by an external > > function

Re: [deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-01-22 Thread Wolfgang Bangerth
On 1/22/20 11:17 AM, 'Maxi Miller' via deal.II User Group wrote: > As source term for calculations I am using data which is written in an > external matrix (because it has been calculated by an external > function), together with the x- and y-values for each matrix entry. My > current approach f

[deal.II] Using data from external matrix as source for calculations done with deal.II - best approach?

2020-01-22 Thread 'Maxi Miller' via deal.II User Group
As source term for calculations I am using data which is written in an external matrix (because it has been calculated by an external function), together with the x- and y-values for each matrix entry. My current approach for using this data is to use an interpolation function from GSL, and cal