[deal.II] Re: Relationships between material parameters

2017-01-12 Thread Jean-Paul Pelteret
Dear Seyed, It would be great to have your contribution to deal.II! When you have the time to implement this, open up an issue on the GitHub page and we could discuss this further. We can always refer back to this conversation at that point in

[deal.II] Re: Relationships between material parameters

2017-01-12 Thread 'Seyed Ali Mohseni' via deal.II User Group
Your ideas are very constructive and useful, I didn't think it would be so complex to make it general in deal.II. I am not an expert still, but how about we make it something similar to the FEValues class where you just specify the necessary parameters and the desired conversion. @ Jean-Paul:

Re: [deal.II] Re: Relationships between material parameters

2017-01-11 Thread Jean-Paul Pelteret
I am most swayed towards Wolfgang's suggestion that takes in some identifying enumeration type and the associated material parameters. I think its probably the most transparent and easy to maintain option that we've come up with thus far. Seyed, would you like to try to implement this?

Re: [deal.II] Re: Relationships between material parameters

2017-01-10 Thread Wolfgang Bangerth
On 01/10/2017 08:26 AM, Jean-Paul Pelteret wrote: That would work quite nicely but my only concern is that, again, one might end up with many structs along with the many function definitions in order to accommodate all of the potential permutations. What do you think of this concept as an

Re: [deal.II] Re: Relationships between material parameters

2017-01-10 Thread Jean-Paul Pelteret
Hi Wolfgang, Do you have any recommendations on a function hierarchy/naming scheme? Most of these functions will take two numbers and return another one, which means that most of them have the same argument list. In my own code I have nested namespaces and functions like double

Re: [deal.II] Re: Relationships between material parameters

2017-01-10 Thread Wolfgang Bangerth
On 01/10/2017 04:21 AM, Jean-Paul Pelteret wrote: There is a table in wikipedia that details how to convert between fundamental elastic material parameters. Due to the number of permutations that are available, I would be hesitant to

[deal.II] Re: Relationships between material parameters

2017-01-10 Thread Jean-Paul Pelteret
Dear Seyed, There is a table in wikipedia that details how to convert between fundamental elastic material parameters. Due to the number of permutations that are available, I would be hesitant to add this to deal.II itself. However,