← Back to team overview

yade-dev team mailing list archive

Re: How to change the macros

 

Hoi Anna,

as already pointed out by Bruno and Anton it makes no sense to change 
Serializable.hpp. If you want to add more parameters to to WireMat you have to 
define it in WirePM.hpp. However, in order to use this new parameters you would 
have to change the code in WirePM.cpp as well.

Anyway, the actual code uses two different stress-strain-curves where the one 
for the double-twist is computed from the single wire curve by using the 
parameters lambda_eps and lambda_k (see Bertrand, some assumptions are made 
and the single wire curve is somehow scaled to get the one for the double 
twist). So if you know your stress-strain-curve for the double twist you just 
have to find out which parameters give you the expected behaviour.

HTH

Klaus

On Tue, 26 Apr 2011 11:20:14 pm Anna Effeindzourou wrote:
> Hi,
> 
> I try to change the macros in Serializable.hpp in order to have more
> parameters when I define the wireMat (I have join the code) I want to have
> possibility to enter two curves but it doesn't work.
> I have this error with the code join with this mail:
> 
> home/anna/yade/lib/serialization/Serializable.hpp: In member function
> 'PyObject*
> boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObjec
> t*, PyObject*) [with Caller = boost::python::detail::caller<PyObject*
> (*)(Serializable&, const Serializable&),
> boost::python::default_call_policies, boost::mpl::vector3<PyObject*,
> Serializable&, const Serializable&> >]':
> /home/anna/yade/lib/serialization/Serializable.hpp:264: warning:
> dereferencing pointer 'p.2661' does break strict-aliasing rules
> /usr/include/boost/python/detail/destroy.hpp:90: note: initialized from
> here /home/anna/build-trunk/include/yade/lib/factory/Factorable.hpp:63:
> warning: dereferencing pointer 'this.685' does break strict-aliasing rules
> /home/anna/yade/lib/serialization/Serializable.hpp:264: note: initialized
> from here
> /home/anna/yade/lib/serialization/Serializable.hpp:264: warning:
> dereferencing pointer 'p.2661' does break strict-aliasing rules
> /usr/include/boost/python/detail/destroy.hpp:90: note: initialized from
> here /home/anna/build-trunk/include/yade/lib/factory/Factorable.hpp:63:
> warning: dereferencing pointer 'this.685' does break strict-aliasing rules
> /home/anna/yade/lib/serialization/Serializable.hpp:264: note: initialized
> from here
> scons: *** [/home/anna/build-trunk/lib/yade-support.os] Error 1
> scons: *** [/home/anna/build-trunk/core/core.os] Error 1
> scons: building terminated because of errors.
> 
> What can I do to make it work?
> 
> Thanks in advance,
> Anna

-- 
Dr. Klaus Thoeni - Centre for Geotechnical and Materials Modelling
Civil, Surveying and Environmental Engineering - Engineering Building EA
The University of Newcastle, Callaghan, NSW 2308, Australia
web: http://www.newcastle.edu.au/research-centre/cgmm
phone: +61 (0)2 4921 5118


Follow ups

References