What version of matplotlib you are using? I use matplotlib ver. 3.3.4 and it works.
set_box_aspect option has been added to matplotlib 3.3, so you need at least this version to make it work.
https://matplotlib.org/stable/users/pre ... pect-ratio
Search found 51 matches
- Sun Jul 04, 2021 3:48 am
- Forum: OpenSeesPy
- Topic: About ops_vis
- Replies: 4
- Views: 5471
- Mon May 31, 2021 3:04 am
- Forum: OpenSeesPy
- Topic: Mismatch on portal deformation [Solved]
- Replies: 2
- Views: 3925
Re: Mismatch on portal deformation
The specified scaling factor (80) is too large for this model and load. Remove it from first plot_defo argument and then adjust.
If not specified, the scaling factor is calculated automatically based on the model geometry. The maximum displacement shown on the plot is 20% of the maximum model size.
If not specified, the scaling factor is calculated automatically based on the model geometry. The maximum displacement shown on the plot is 20% of the maximum model size.
Code: Select all
sfac = opsv.plot_defo() # selected deformation factor
- Thu Oct 11, 2018 3:46 am
- Forum: OpenSees.exe Users
- Topic: nDMaterial RCPlaneStress . How can I obtain it?
- Replies: 2
- Views: 2651
- Wed Sep 12, 2018 1:28 am
- Forum: Framework
- Topic: SVN Problem
- Replies: 13
- Views: 13303
- Fri Jun 15, 2018 11:18 am
- Forum: OpenSees.exe Users
- Topic: Why my dynamic analysis does not continue until degradation?
- Replies: 5
- Views: 4239
Re: Why my dynamic analysis does not continue until degradat
Jhno,
According to the documentation of tcl
http://wiki.tcl.tk/1476
by default the optional parameter ?increment? is equal to 1, so
"incr i 1" is eqivalent to "incr i"
According to the documentation of tcl
http://wiki.tcl.tk/1476
by default the optional parameter ?increment? is equal to 1, so
"incr i 1" is eqivalent to "incr i"
- Wed Dec 20, 2017 11:30 am
- Forum: OpenSees.exe Users
- Topic: Build OpenSees for Linux
- Replies: 15
- Views: 12773
Re: Build OpenSees for Linux
I tried another model available from the following webpage:
Implementation of a Simple Biaxial Concrete Model for Reinforced Concrete Membranes
by Bernardo Garcia Ramirez
https://era.library.ualberta.ca/files/c ... 09_MSc.pdf
This is Mazars Damage 2d model, the Opensees implementation is described in this Master thesis and the Mazars.cpp and Mazars.h codes are added at the end of the pdf.
However I cannot compile it.
Implementation of a Simple Biaxial Concrete Model for Reinforced Concrete Membranes
by Bernardo Garcia Ramirez
https://era.library.ualberta.ca/files/c ... 09_MSc.pdf
This is Mazars Damage 2d model, the Opensees implementation is described in this Master thesis and the Mazars.cpp and Mazars.h codes are added at the end of the pdf.
However I cannot compile it.
- Mon Nov 13, 2017 4:28 am
- Forum: OpenSees.exe Users
- Topic: Source code link does not work
- Replies: 6
- Views: 5583
Re: Source code link does not work
svn co svn://peera.berkeley.edu/usr/local/svn/OpenSees/trunk OpenSees
see the link:
http://opensees.berkeley.edu/OpenSees/developer/svn.php
see the link:
http://opensees.berkeley.edu/OpenSees/developer/svn.php
- Fri Sep 01, 2017 12:38 am
- Forum: OpenSees.exe Users
- Topic: Zero length elements with shear-axial interaction
- Replies: 33
- Views: 20466
Re: Zero length elements with shear-axial interaction
I'm also interested: rafallo8791@gmail.com
Thank you in advance!
Thank you in advance!
- Thu Jul 20, 2017 11:28 pm
- Forum: OpenSees.exe Users
- Topic: Update
- Replies: 3
- Views: 3308
Re: Update
You can use 'parameter' and 'updateParameter' OpenSees commands. See the docs for the syntax. You can use this approach when the materials of interests have setParameter method in cpp source files.
From OpenSees/SRC/material/nD/UWmaterials/DruckerPrager.cpp
we have:
-----------------------------------------------------------------------------
....
int DruckerPrager::setParameter(const char **argv, int argc, Parameter ¶m)
{
if (strcmp(argv[0],"materialState") == 0) {
// switch elastic/plastic state
return param.addObject(5,this);
} else if (strcmp(argv[0],"frictionalStrength") == 0) {
// update rho parameter
return param.addObject(7,this);
} else if (strcmp(argv[0],"nonassociativeTerm") == 0) {
// update nonassociative rho_bar parameter
return param.addObject(8,this);
} else if (strcmp(argv[0],"cohesiveIntercept") == 0) {
// update zero confinement yield strength
return param.addObject(9,this);
} else if (strcmp(argv[0],"shearModulus") == 0) {
// update shear modulus
return param.addObject(10,this);
} else if (strcmp(argv[0],"bulkModulus") == 0) {
// update bulk modulus
return param.addObject(11,this);
} else if (strcmp(argv[0],"updateMaterialStage") == 0) {
return -1;
} else {
// invalid parameter type
opserr << "WARNING: invalid parameter command for DruckerPrager nDMaterial with tag: " << this->getTag() << endln;
return -1;
}
...
-------------------------------
It means you can set parameter and then update it. Look at the examples here:
http://opensees.berkeley.edu/wiki/index ... oil_Column
HTH
From OpenSees/SRC/material/nD/UWmaterials/DruckerPrager.cpp
we have:
-----------------------------------------------------------------------------
....
int DruckerPrager::setParameter(const char **argv, int argc, Parameter ¶m)
{
if (strcmp(argv[0],"materialState") == 0) {
// switch elastic/plastic state
return param.addObject(5,this);
} else if (strcmp(argv[0],"frictionalStrength") == 0) {
// update rho parameter
return param.addObject(7,this);
} else if (strcmp(argv[0],"nonassociativeTerm") == 0) {
// update nonassociative rho_bar parameter
return param.addObject(8,this);
} else if (strcmp(argv[0],"cohesiveIntercept") == 0) {
// update zero confinement yield strength
return param.addObject(9,this);
} else if (strcmp(argv[0],"shearModulus") == 0) {
// update shear modulus
return param.addObject(10,this);
} else if (strcmp(argv[0],"bulkModulus") == 0) {
// update bulk modulus
return param.addObject(11,this);
} else if (strcmp(argv[0],"updateMaterialStage") == 0) {
return -1;
} else {
// invalid parameter type
opserr << "WARNING: invalid parameter command for DruckerPrager nDMaterial with tag: " << this->getTag() << endln;
return -1;
}
...
-------------------------------
It means you can set parameter and then update it. Look at the examples here:
http://opensees.berkeley.edu/wiki/index ... oil_Column
HTH
- Thu Jul 06, 2017 11:35 pm
- Forum: Framework
- Topic: Opensees under Linux (Debian 9) slower than on Windows 7
- Replies: 4
- Views: 6214
Re: Opensees under Linux (Debian 9) slower than on Windows 7
Thank you for hints. I tried various optimization flags when compiling recent Opensees (svn 6602) and the results are as follows:
Analysis execution time: 393 seconds - Windows 7, downloaded 2.5 version
Analysis execution time: 575 seconds - compiled with -Ofast
Analysis execution time: 964 second - compiled with -O3
Analysis execution time: 1376 seconds - compiled with -O2
Note that when I try to add -march=native (which is =sandybridge for Intel Core i5) the compilation process fails.
Any other specific ideas how to improve the performance of Opensees under Linux?
Analysis execution time: 393 seconds - Windows 7, downloaded 2.5 version
Analysis execution time: 575 seconds - compiled with -Ofast
Analysis execution time: 964 second - compiled with -O3
Analysis execution time: 1376 seconds - compiled with -O2
Note that when I try to add -march=native (which is =sandybridge for Intel Core i5) the compilation process fails.
Any other specific ideas how to improve the performance of Opensees under Linux?
- Sun Jun 18, 2017 12:42 am
- Forum: Framework
- Topic: Build Error (OpenSees, Debian)
- Replies: 3
- Views: 4841
Re: Build Error (OpenSees, Debian)
Thank you Frank! The new svn 6598 commit fixes the problem.
- Sat Jun 17, 2017 6:57 am
- Forum: Framework
- Topic: Opensees under Linux (Debian 9) slower than on Windows 7
- Replies: 4
- Views: 6214
Opensees under Linux (Debian 9) slower than on Windows 7
I noticed a significant difference in execution time when running 'slopeAnalysis2Deff.tcl' (which requires velocityHistory.out) downloaded from [1] on the same computer but two operating systems. Namely under Windows the execution time is more than three times faster than on Linux Debian 9. On windows 7 (Dell Vostro, intel core i5 @ 2.50 GHz, RAM 6GB) the full analysis (5000 steps) finishes after 3.25 hours, but I also tested it with fewer steps, e.g. 450 steps in 390 seconds.
Any hints what causes such a difference?
[1] http://opensees.berkeley.edu/wiki/index ... s_of_Slope
Any hints what causes such a difference?
[1] http://opensees.berkeley.edu/wiki/index ... s_of_Slope
- Thu Jun 15, 2017 7:57 am
- Forum: Framework
- Topic: Build Error (OpenSees, Debian)
- Replies: 3
- Views: 4841
Re: Build Error (OpenSees, Debian)
I would like to inform you that under Debian, there is a new Build Error caused by svn commit 6590 X.Zeng - update. ExplicitDifference.o file is not built due to compile errors.
UPDATE: To be more specific the issue is due to changes in ExplicitDifference.cpp and ExplicitDifference.h files. I think there are unwanted chages in the file content such as "ExplicitDifference" into "Explicitdifference" (note the lowercase "difference").
From the compilation we get:
ExplicitDifference.cpp:30:24: error: ‘INTEGRATOR_TAGS_Explicitdifference’ was not declared in this scope
...
../../../Makefile.def:206: recipe for target 'ExplicitDifference.o' failed
make[3]: *** [ExplicitDifference.o] Error 1
while in SRC/classTags.h in line 875 we have
#define INTEGRATOR_TAGS_ExplicitDifference 55
UPDATE: To be more specific the issue is due to changes in ExplicitDifference.cpp and ExplicitDifference.h files. I think there are unwanted chages in the file content such as "ExplicitDifference" into "Explicitdifference" (note the lowercase "difference").
From the compilation we get:
ExplicitDifference.cpp:30:24: error: ‘INTEGRATOR_TAGS_Explicitdifference’ was not declared in this scope
...
../../../Makefile.def:206: recipe for target 'ExplicitDifference.o' failed
make[3]: *** [ExplicitDifference.o] Error 1
while in SRC/classTags.h in line 875 we have
#define INTEGRATOR_TAGS_ExplicitDifference 55
- Wed Apr 12, 2017 11:48 pm
- Forum: OpenSees.exe Users
- Topic: nDMaterial suitable for concrete block
- Replies: 8
- Views: 8468
Re: nDMaterial suitable for concrete block
I would also be interested in using Damage2p material, however this material is available nor in the sources nor in the Windows executable files provided on the Opensees website. Is there a previous version of Opensees which was compiled with the Damage2p code? Thanks in advance.
- Tue Oct 11, 2016 12:57 pm
- Forum: OpenSees.exe Users
- Topic: OpenSees SNOPT
- Replies: 2
- Views: 3196
Re: OpenSees SNOPT
Dear Frank,
The video and presentation from the Opensees days 2012 by Quang Gu on SNOPT Optimization features in Opensees is very interesting, however there is no documentation and no examples on Opensees wiki page.
What is the status of SNOPT in Opensees: is it compiled in executable files? What about compiling snopt from sources - seeing that e.g. snopt.h and other snopt files are missing in the Opensees sources?
The video and presentation from the Opensees days 2012 by Quang Gu on SNOPT Optimization features in Opensees is very interesting, however there is no documentation and no examples on Opensees wiki page.
What is the status of SNOPT in Opensees: is it compiled in executable files? What about compiling snopt from sources - seeing that e.g. snopt.h and other snopt files are missing in the Opensees sources?