19-Jan-2006  
 

Modifs

Modifs

Modifs

Un petit exemple


# fct python "pression"

def mfct(t,x0):
    import math
    fx = math.sin(2*math.pi*x0)
    return (t-1)*fx
	
# objet inteface

pmfct = PythonMultiParameterFunction(mfct,2)

# ElementProperties

pressure=800
prp = ElementProperties(Traction2DElement)
prp.put(PRESSION_1, pressure)
prp.depend(PRESSION_1, pmfct, KeyList(Key(TM),Key(TX|AB)))


trop simple! et ça donne ça:

Fichiers ajoutés / supprimés

A mtMath/ConstantDriver.cpp
A mtMath/ConstantDriver.h
A mtMath/FunctionBase.cpp
A mtMath/FunctionBase.h
A mtMath/MultiParameterFunction.cpp
A mtMath/MultiParameterFunction.h
A mtMath/OneParamDriver.cpp
A mtMath/OneParamDriver.h
R mtLoadings/FunctLoadingDriver.cpp
R mtLoadings/FunctLoadingDriver.h
R mtLoadings/LoadingDriver.cpp
R mtLoadings/LoadingDriver.h
A mtKernel/KeyList.h
A mtKernel/Property0P.cpp
A mtKernel/Property0P.h
A mtKernel/Property1P.cpp
A mtKernel/Property1P.h
A mtKernel/PropertyNP.cpp
A mtKernel/PropertyNP.h
A mtKernel/SmallList.h
A mtKernel/SmallList.inl
A mtPython/PythonMultiParameterFunction.cpp
A mtPython/PythonMultiParameterFunction.h

 

 

Back to Metafor web server
created :13-Jan-2006   modified : 19-Jan-2006
contact : r_boman_AT_yahoo.fr