← Back to team overview

yade-dev team mailing list archive

Re: moment law, doing it right

 

> I looked up the formulas in the code how β is used:
> 
>   Kr=β*Ks*Ra*Rb
> 
> While, Jerome and Luc have a different formula:
>   Kr=β*Ks*(Ra+Rb)^2/4.0
I suggest that you put all the formulas (at the SAME time as you write
the code) to the documentation. In my experience, it makes writing the
code itself easier, as you can continually check, even if you write
formulas twice. See e.g.
https://yade-dem.org/sphinx/yade.wrapper.html?highlight=peri3dcontroller#yade.wrapper.Peri3dController

> BTW, personally I'd be happy if g++ was able to compile UTF-8, and we
> could use β,μ,η,Kn,Ks,Kr,Fs,Fn,M instead of lenghty names. But that
> will cause too much incompatibility - did you know that this feature
> is experimentally allowed?
> 
>   http://gcc.gnu.org/wiki/FAQ#What_is_the_status_of_adding_the_UTF-8_support_for_identifier_names_in_GCC.3F
>   http://gcc.gnu.org/ml/gcc/2010-04/msg00827.html
I would be very happy to use that, but I think it is not possible
currently:

1. We would have to find out how it works in python; I believe it is
only supported only in >= 3.0.

2. The script to replace literals with their unicode codes is really
horrible, I think it is not acceptable.

v.




References