Why use cond properties and not k in HDG toolbox ? #1293
-
in the HDG toolbox, the property "cond" is defined instead of "k" which would be the standard one for the conductivity. Why is that? The main issue is that it is not defined in the material properties data structures as it would be for the other toolboxes. It is only available in the Moreover, for the python wrapping, it is a pain as it would require specific handling of this material property. I spent quite some time on this issue |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments
-
I think that at the beginning, the first implementation of HDG Poisson by Romain and Daniele was for thermal applications and all the drafts for theory were written for that. |
Beta Was this translation helpful? Give feedback.
-
In the case of thermoelectric problem, we have two Poisson toolboxes for two different physics with different conductivities. If we use the data structure of What could be done is here feelpp/feelpp/feel/feelmodels/modelmaterials.cpp Lines 76 to 81 in 7ad447d instead of this, we use setProperty for every child found different than physics, markers and filename.And in the toolbox, instead of using material.getScalar(M_conductivityKey); we would use material.propertyExprScalar(M_conductivityKey) .What do you think ? |
Beta Was this translation helpful? Give feedback.
-
what is the problem with having two json files? the two problems have their own BC and materials associated, no ? Moreover on |
Beta Was this translation helpful? Give feedback.
-
This issue is strongly related to #1287 which is needed for OpenTURNS and #1259 at least. |
Beta Was this translation helpful? Give feedback.
-
We could indeed add the possibility to register automatically new properties |
Beta Was this translation helpful? Give feedback.
-
I agree that we should only use |
Beta Was this translation helpful? Give feedback.
-
For the two, or more, json files, I think it is both a waste of time and a source of errors. |
Beta Was this translation helpful? Give feedback.
-
So this would work for you with python ?
|
Beta Was this translation helpful? Give feedback.
-
I would prefer to use standard name properties defined by physics. regarding the two json, what about this https://github.com/feelpp/feelpp/tree/develop/toolboxes/hdg/HL-31 ? |
Beta Was this translation helpful? Give feedback.
-
@prudhomm Regarding this mix between the inner |
Beta Was this translation helpful? Give feedback.
-
the |
Beta Was this translation helpful? Give feedback.
-
Regarding this I would suggest to pass every function that uses the ptree directly in deprecated, and see if we need something else in |
Beta Was this translation helpful? Give feedback.
-
@vincentchabannes @romainhild I am closing the issue. If I understand correctly, this is taken care of by the Physics section and the vocabulary we can put on top of a generic toolbox with the expression system. is that correct ? |
Beta Was this translation helpful? Give feedback.
-
It is correct, with the Physics you can use different terms for the primal and dual variables, but it should be improved to support conductivities and boundary conditions. feelpp/toolboxes/feel/feelmodels/hdg/enums.cpp Lines 9 to 12 in 44cb184 |
Beta Was this translation helpful? Give feedback.
It is correct, with the Physics you can use different terms for the primal and dual variables, but it should be improved to support conductivities and boundary conditions.
feelpp/toolboxes/feel/feelmodels/hdg/enums.cpp
Lines 9 to 12 in 44cb184