← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2120: - update of ThreeDTriaxialEngine with YADE_CLASS_BASE_DOC_ATTRS_CTOR_PY \n - modified ThreeDTriax...

 

Just a few comments to the code (nothing horrible, just FYI):


> +       << lexical_cast<string> ( triaxialStressController->stress[triaxialStressController->wall_right][0] ) << " "
> +       << lexical_cast<string> ( triaxialStressController->stress[triaxialStressController->wall_top][1] ) << " "
> +       << lexical_cast<string> ( triaxialStressController->stress[triaxialStressController->wall_front][2] ) << " "
> +       << lexical_cast<string> ( triaxialStressController->strain[0] ) << " "
> +       << lexical_cast<string> ( triaxialStressController->strain[1] ) << " "
> +       << lexical_cast<string> ( triaxialStressController->strain[2] ) << " "
> +       << lexical_cast<string> ( triaxialStressController->ComputeUnbalancedForce () ) << " "
You don't need lexical_cast<string> here. All that is number and they
have their << operators on the stream defined (Vector3r's do as well,
for that matter).


> +               translationAxisy=Vector3r(0,1,0);
> +               translationAxisx=Vector3r(1,0,0);
> +               translationAxisz=Vector3r(0,0,1);
Vector3r::UNIT_X, Vector3r::UNIT_Y etc... is defined.

Thanks for docs, I will fix :yref:`Class` instead of :yref:Class, no
worry :-)

Vaclav




References