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 Constitutive_Parameters::Bulk_modulus::from_lambda_and_mu(double lambda, 
double mu)
This can get untidy quite quickly, but I can’t think of a much better 
alternative…

Best,
J-P

> On 10 Jan 2017, at 14:07, Wolfgang Bangerth <bange...@colostate.edu> wrote:
> 
> On 01/10/2017 04:21 AM, Jean-Paul Pelteret wrote:
>> 
>> There is a table in wikipedia
>> <https://en.wikipedia.org/wiki/Bulk_modulus#Further_reading> 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, I'm happy to entertain a discussion on it with the other
>> developers since I have many such functions implemented in my own library and
>> could also contribute these.
> 
> I think this could live in a namespace Physics::Elasticity or similar. The 
> formulas are uncontroversial and likely useful in a number of contexts.
> 
> 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 a topic in the 
> Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/dealii/x4--tyLFS1A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> dealii+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to