Re: [deal.II] std::vector error

2017-01-10 Thread Weixiong Zheng
Sir, Just recalled I asked this before. So I put what I have tried here. 在 2015年10月1日星期四 UTC-5下午10:58:40,Wolfgang Bangerth写道: > > On 10/01/2015 10:52 PM, Weixiong Zheng wrote: > > I tried to understand what you said and looked at step-9. So what you > suggest is: > > > > std::vector > > > ve

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

2017-01-10 Thread Timo Heister
Another idea: create a struct ElasticProperties that can be constructed using different functions (maybe with functions like make_from_mu_and_nu()) and that has member functions to compute arbitrary output. Internally it would convert to one representation during construction. On Tue, Jan 10, 2017

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 altern

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

2017-01-10 Thread Jean-Paul Pelteret
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 alternative? enum ElasticityParameters {LameParameter, P

[deal.II] Re: Tensor Output

2017-01-10 Thread Daniel Arndt
Ehsan, In my code first I calculate displacements (uh) then in each cell at the > q_points I calculate S_xx, S_xy, S_yy stress components and project them to > the nodes and with a averaging method calculate stress nodal values. > > Now I want to calculate stress components in polar coordinates.

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

2017-01-10 Thread Wolfgang Bangerth
On 01/10/2017 06:18 AM, Jean-Paul Pelteret wrote: 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 fun

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 Constitutive_Par

[deal.II] Re: Library file sizes

2017-01-10 Thread Bruno Turcksin
Praveen, yes it's normal. The debug library needs to keep a list of symbols that can be used by the debugger (if you use the release version in a debugger, you won't get much information). There may also partly due to the optimization of the code. Best, Bruno On Tuesday, January 10, 2017 at

Re: [deal.II] Library file sizes

2017-01-10 Thread Wolfgang Bangerth
On 01/10/2017 01:28 AM, Praveen C wrote: I noticed that on my linux computer, the deal.II debug library size is rather large $ du -sh * 60Kcmake 0libdeal_II.g.so 1.3Glibdeal_II.g.so.8.5.0-pre 0libdeal_II.so 138Mlibdeal_II.so.8.5.0-pre Is this normal ? Yes. Debug

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 a

[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,

[deal.II] Relationships between material parameters

2017-01-10 Thread 'Seyed Ali Mohseni' via deal.II User Group
Hi everyone, I am just implementing some material parameter relationships such as lambda = E * v / (1 + v) / (1 - 2 * v) for instance. There is a table for such conversion of quantities. Would it be beneficial to have such a library that computes and converts these quantities automatically

[deal.II] Relationship between material parameters

2017-01-10 Thread 'Seyed Ali Mohseni' via deal.II User Group
Hi everyone, I am just implementing some material parameter relationships such as lambda = E * v / (1 + v) / (1 - 2 * v) for instance. There is a table for such conversion of quantities. Would it be beneficial to have such a library that computes and converts these quantities automatically

[deal.II] Library file sizes

2017-01-10 Thread Praveen C
I noticed that on my linux computer, the deal.II debug library size is rather large $ du -sh * 60K cmake 0 libdeal_II.g.so 1.3G libdeal_II.g.so.8.5.0-pre 0 libdeal_II.so 138M libdeal_II.so.8.5.0-pre Is this normal ? Best praveen -- The deal.II project is located at http://www.dealii.org/