axisvm / pyaxisvm Goto Github PK
View Code? Open in Web Editor NEWA python package for AxisVM
License: MIT License
A python package for AxisVM
License: MIT License
Update documentation to use Sphinx together with the PyData theme.
There should be a method of IAxisVMMember that returns the lines connected at certain nodes.
Describe the bug
When first installed, numpy is missing as not included in requirements.txt
To Reproduce
Steps to reproduce the behavior:
follow the installation steps in README
'from axisvm.com.client import start_AxisVM' will fail as numpy is missing but dewloosh.core requires it
Expected behavior
the import should have worked right away
Desktop (please complete the following information):
Hello AxisVM-Team
I would like to implement a spring, which stiffness is defined by a function. The image shows how to do this "by hand".
By reading the COM interface manual I was able to add a spring characteristic, that is defined by a function, but i cannot add function points, as it can be done with the "TimeIncrementFunctions".
federeigenschaften = axtlb.RSpringParam_V161(
SpringType = axtlb.sptNodal,
NonLinearity = axtlb.spnlTensionAndCompression,
NNType = axtlb.spnntNonLinearElastic,
DOFType = axtlb.spdoftTranslation,
NLDefType = axtlb.spnldtByFunction
)
_ = axm.SpringParams.Add_V161("X-Richtung", federeigenschaften)
Could you guide me, how to do that properly? Eventually I would like to add the spring characteristic to my springs.
Create interface wrapper for IAxisVMNodalSupports, similar to how other interfaces are implemented.
In the function Members.get_connected_member_ids
it is not considered that indices in AxisVM start with 1, instead of zero. This results in a NullCOMPointerAccess and in general bad output in all cases.
The COM server does not return the critical support forces correctly, when IAxisVMForces.CriticalNodalSupportForce
or IAxisVMForces.CriticalNodalSupportForce2
is called.
A minimal code snippet to reproduce the problem. provided that an AxisVM is running and it was started with the /MULTIINSTANCECOMCLIENTS
argument
from axisvm.com.client import start_AxisVM
from axisvm.com.axapp import IAxisVMApplication
from axisvm.com.axmodel import IAxisVMModel
from axisvm.examples.downloads import download_bernoulli_grid
import axisvm.com.tlb as axtlb
axapp: IAxisVMApplication = start_AxisVM(visible=True, join=True, daemon=False)
axapp.model = download_bernoulli_grid()
axmodel: IAxisVMModel = axapp.model
axforces = axmodel.Results.Forces
axforces.AnalysisType = axtlb.atLinearStatic
axforces.LoadLevelOrModeShapeOrTimeStep = 1
axforces.CombinationType = axtlb.ctAuto
axforces.Component=axtlb.nsfRz
axforces.MinMaxType=axtlb.mtMin
record = axforces.CriticalNodalSupportForce(NodalSupportId=5)[0]
Rz_min = record.Rz # this value is wrong
According to the model, the value of Rz_min
should be -72.018
.
Another interesting phenomenon is that the API returns a smaller value for axtlb.mtMax
than for axtlb.mtMin
.
This is the node in the model:
I have tried to get the correct value with all possible combination types, other than axtlb.ctAuto
, but none of them yields the correct value.
System details:
Describe the bug
I would like to show the My diagram for beams/members for the Critical(Min, Max) combination.
The code works fine, if I set the value for "LoadCaseOrCombinationOrEnvelopeUID" to a number of a LoadCase (1-5 in this model), but it does not do anything, if I set the value to 0, which is suggested by the COM manual.
Btw. In the COM manual, "LoadCaseOrCombinationOrEnvelopeId" is written, but it is actually "LoadCaseOrCombinationOrEnvelopeUID".
The COM manual claims that the value should be 0 for Critical Combinations.
Please find my display parameter code snippet below:
# My ábra megjelenítése kitöltött diagrammal
basic_disp_params = axtlb.RBasicDisplayParameters_V153(ResultComponent=axtlb.rc_lfMy,
Scale=1.00,
DisplayMode=axtlb.dmDiagramFilled,
DisplayShape=axtlb.dsUndeformed,
AutoScale=True)
RC_ext_disp_params = axtlb.RExtendedDisplayParameters_V153(BasicDispParams=basic_disp_params,
DisplayAnalysisType=axtlb.datLinear,
ResultType=axtlb.rtCritical,
MinMaxType=axtlb.mtMinMax,
CriticalResCombinationType=axtlb.ctAuto,
)
axm.Windows.SetRCDesignDisplayParameters_V153(Index = axm.Windows.Count,
ExtendedDisplayParameters = RC_ext_disp_params,
LoadCaseOrCombinationOrEnvelopeUID=0)
AxisVM Platform | 64 bit
AxisVM Version | 16 r2r Hu 0
Type Library Version | 16 100
I experienced this erro on Python 3.10 using comtypes 1.2.0
---------------------------------------------------------------------------
ArgumentError Traceback (most recent call last)
Cell In[12], line 9
7 factors = np.random.rand(nC)
8 name = 'Combination {}'.format(i+1)
----> 9 axm.LoadCombinations.Add(name, ctULS1, factors, caseIDs)
ArgumentError: argument 3: : Argument [0.43154583 0.00095536 0.69861531 0.85974925 0.40414348] appears to be a numpy.ndarray, but comtypes numpy support has not been enabled. Please try calling comtypes.npsupport.enable_numpy_interop() before passing ndarrays as parameters.
Use poetry for handling dependencies and package distribution.
There is a missing comma in requirements.txt
Update project classifiers in pyproject.toml regarding the operating system
Migrate from setup.py to pyproject.toml.
While loading material from catalog I'm getting error:
matId = axm.Materials.AddFromCatalog(axtlb.ndcEuroCode, "S 235")
OSError: exception: access violation reading 0xFFFFFFFFFFFFFFFE
Everything else in examples work as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.