Giter VIP home page Giter VIP logo

pyaxisvm's Issues

joint-connectivity

There should be a method of IAxisVMMember that returns the lines connected at certain nodes.

missing dependency

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):

  • OS: any

Spring characteristics defined by function

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".
image

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.

NullCOMPointerAccess caused by wrong index

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.

bad result when calling `CriticalNodalSupportForce`

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:
image

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:

  • Windows 11 (64 bit)
  • Python 3.10.9
  • AxisVM version: X7 R2b-qf3

Critical Combination Results not showing

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.
kép

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

comtypes numpy support for version > 1.1.11

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.

Unable to load material from catalog

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.