Ahmad,

On Tuesday, April 14, 2020 at 5:39:06 PM UTC+2, Ahmad Shahba wrote:
>
> I don't know if it is the optimal way but I would use the following 
> approach
>
>    1. Read tensor components as Patterns::List 
>    2. Use  get 
>    
> <https://www.dealii.org/current/doxygen/deal.II/classParameterHandler.html#a91cfbaca954f444047302446a4e87125>
>   
>    method of ParameterHandler to read all tensor  components as one string 
>    into a string variable
>    3. Use  split_string_list 
>    
> <https://www.dealii.org/current/doxygen/deal.II/namespaceUtilities.html#a0a2b9ceded96f25b47eccd7c177dc67e>
>       in the Utilities namespace to split the string into individual 
>    components (still all components are strings)
>    4. Convert  string-type components into doubles using  string_to_double 
>    
> <https://www.dealii.org/current/doxygen/deal.II/namespaceUtilities.html#ab3177021843ad87857e6f8c5d98d29a5>
>  in 
>    the Utilities namespace
>    5. Use  Tensor 
>    
> <https://www.dealii.org/current/doxygen/deal.II/classTensor.html#a6118e90e58ca4041ba452ab647db0b29>
>     (const Tensor 
>    <https://www.dealii.org/current/doxygen/deal.II/classTensor.html>< 
>    rank_, dim, OtherNumber > &initializer) to construct the tensor
>
> Could you please elaborate on pointa 1 and 5, or share a code snippet 
which explains the process. 

Best,
Paras

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/c4cf7c8d-65b0-4c0f-a31d-242dcae09a68%40googlegroups.com.

Reply via email to