Adding new material
Moderators: silvia, selimgunay, Moderators
-
- Posts: 11
- Joined: Fri Oct 18, 2013 9:36 am
- Location: Unam
Adding new material
Hi, everyone,
I been successfully following the "Implementing Your Own Material in OpenSees" tutorial. Now as second step, I've decided just to try modifying only the name of a copy of the steel01 material but I'm missing something, this is what I done:
1.- a change of all variables and files in (Steel01.h, Steel01 .cpp) to (trialMat01.h trialMat01.cpp)
2.- an addition of "#define MAT_TAG_trialMat01 76" in classTags.h
3.- I get the trialMat01.dll file like in the tutorial without warnings
4.- Also I've checked "virtual int setTrialStrain (double strain, double strainRate =0) =0;" in uniaxialmaterial.h
I'm using OpenSees 2.4.4 rev 5755, VS 2010 and win7. Also I've tried it in OpenSees 2.4.4 rev 5755, win8 and VS 2013 with the same results:
"WARNING could not create unixialMaterial trialMat01"
Which is the right way to do this? Thank you for your valuable time,
I been successfully following the "Implementing Your Own Material in OpenSees" tutorial. Now as second step, I've decided just to try modifying only the name of a copy of the steel01 material but I'm missing something, this is what I done:
1.- a change of all variables and files in (Steel01.h, Steel01 .cpp) to (trialMat01.h trialMat01.cpp)
2.- an addition of "#define MAT_TAG_trialMat01 76" in classTags.h
3.- I get the trialMat01.dll file like in the tutorial without warnings
4.- Also I've checked "virtual int setTrialStrain (double strain, double strainRate =0) =0;" in uniaxialmaterial.h
I'm using OpenSees 2.4.4 rev 5755, VS 2010 and win7. Also I've tried it in OpenSees 2.4.4 rev 5755, win8 and VS 2013 with the same results:
"WARNING could not create unixialMaterial trialMat01"
Which is the right way to do this? Thank you for your valuable time,
-
- Posts: 11
- Joined: Fri Oct 18, 2013 9:36 am
- Location: Unam
Re: Adding new material
NOW IT'S DONE TY.
Re: Adding new material
did you sort out your own problem?
-
- Posts: 11
- Joined: Fri Oct 18, 2013 9:36 am
- Location: Unam
Re: Adding new material
yes, your tutorials are very useful. Thank you
Re: Adding new material
JOSELUISEM wrote:
> Hi, everyone,
> I been successfully following the "Implementing Your Own Material in
> OpenSees" tutorial. Now as second step, I've decided just to try
> modifying only the name of a copy of the steel01 material but I'm missing
> something, this is what I done:
>
> 1.- a change of all variables and files in (Steel01.h, Steel01 .cpp) to
> (trialMat01.h trialMat01.cpp)
> 2.- an addition of "#define MAT_TAG_trialMat01 76" in classTags.h
> 3.- I get the trialMat01.dll file like in the tutorial without warnings
> 4.- Also I've checked "virtual int setTrialStrain (double strain,
> double strainRate =0) =0;" in uniaxialmaterial.h
>
> I'm using OpenSees 2.4.4 rev 5755, VS 2010 and win7. Also I've tried it in
> OpenSees 2.4.4 rev 5755, win8 and VS 2013 with the same results:
> "WARNING could not create unixialMaterial trialMat01"
>
> Which is the right way to do this? Thank you for your valuable time,
hi ,
Could you please give me "Implementing Your Own Material in OpenSees"tutorial.
thank you ,@ 270841567@qq.com
> Hi, everyone,
> I been successfully following the "Implementing Your Own Material in
> OpenSees" tutorial. Now as second step, I've decided just to try
> modifying only the name of a copy of the steel01 material but I'm missing
> something, this is what I done:
>
> 1.- a change of all variables and files in (Steel01.h, Steel01 .cpp) to
> (trialMat01.h trialMat01.cpp)
> 2.- an addition of "#define MAT_TAG_trialMat01 76" in classTags.h
> 3.- I get the trialMat01.dll file like in the tutorial without warnings
> 4.- Also I've checked "virtual int setTrialStrain (double strain,
> double strainRate =0) =0;" in uniaxialmaterial.h
>
> I'm using OpenSees 2.4.4 rev 5755, VS 2010 and win7. Also I've tried it in
> OpenSees 2.4.4 rev 5755, win8 and VS 2013 with the same results:
> "WARNING could not create unixialMaterial trialMat01"
>
> Which is the right way to do this? Thank you for your valuable time,
hi ,
Could you please give me "Implementing Your Own Material in OpenSees"tutorial.
thank you ,@ 270841567@qq.com
Re: Adding new material
wrote:
> did you sort out your own problem?
hi ,fmk
Could you please give me "Implementing Your Own Material in OpenSees"tutorial.
thank you ,@ 270841567@qq.com
> did you sort out your own problem?
hi ,fmk
Could you please give me "Implementing Your Own Material in OpenSees"tutorial.
thank you ,@ 270841567@qq.com
Re: Adding new material
I'm having exactly the same problem.
I also get the trialMat01.dll file like in the tutorial without warnings.
but I get this message also: "WARNING could not create unixialMaterial trialMat01"
How did you solve this problem?
does anyone know how?
I'm so desperate to see the answer.
I also get the trialMat01.dll file like in the tutorial without warnings.
but I get this message also: "WARNING could not create unixialMaterial trialMat01"
How did you solve this problem?
does anyone know how?
I'm so desperate to see the answer.
Re: Adding new material
are you using the 32 bit version of the .exe
Re: Adding new material
Hi fmk
i made new material with dll , but when i use this code,the matrial dosen't fail but i can't plot stress-strain because the stress equals zero.
i used your tutorials.
where is my problem? where is in my code i have mistake?
i will be grateful if you help me.
i made new material with dll , but when i use this code,the matrial dosen't fail but i can't plot stress-strain because the stress equals zero.
i used your tutorials.
where is my problem? where is in my code i have mistake?
i will be grateful if you help me.
Re: Adding new material
in your code put some debugging statements, e.g. before the return from setTrialStress() or getStress() put a debug satement such as:
opserr << "trailStress: " << tStress << endln;
opserr << "trailStress: " << tStress << endln;
Re: Adding new material
Dear fmk
thank you for your attention
i used this debugging statements but my problem didn't solve and in command prompt shows Tstress:0 in each strain.
thank you for your attention
i used this debugging statements but my problem didn't solve and in command prompt shows Tstress:0 in each strain.
Re: Adding new material
well in the setTrialStrain method put something similar that outputs the strain and the stress at end of routine. if strain not 0 and stress 0 the problem lies obviosuly in the method. if it is always 0 it means either your script is garbage.
Re: Adding new material
Dear fmk
explain obviously this line in previous command:
"in the setTrialStrain method put something similar that outputs the strain and the stress at end of routine",which codes shall i put? i khnow just one code that you said for getStress().and when i put this code in getStress(),and in getStrain() the strain was not 0 but stress was 0.
and when i put this one again in setTrailStrain no strain and stress i can't capture,what's wrong in setTrailStrain?
explain obviously this line in previous command:
"in the setTrialStrain method put something similar that outputs the strain and the stress at end of routine",which codes shall i put? i khnow just one code that you said for getStress().and when i put this code in getStress(),and in getStrain() the strain was not 0 but stress was 0.
and when i put this one again in setTrailStrain no strain and stress i can't capture,what's wrong in setTrailStrain?