FAQ 004484 | How can I display the stresses of a surface via RF‑COM?

Easily learn how to work with the Dlubal Software programs

  • Dlubal Software | Videos

Video

First Steps with RFEM

First steps

We provide hints and tips to help you get started with the basic program RFEM.

07/07/2020

001524

Thomas Günthel

RFEM

RF-COM

Please accept Marketing Cookies to watch this video.

Question

How can I display the stresses of a surface via RF‑COM?

Answer

The stresses of a surface can be displayed via the COM interface. First, you need the interface for the model (IModel) and then the interface for the calculation (ICalculation2). Using this interface, you can get the interface for the results (IResults2):

Sub stresses_surfaces_example()
Dim iApp As RFEM5.Application
Dim iModel As RFEM5.model
Set iModel = GetObject(, "RFEM5.Model")

On Error GoTo E

If Not iModel Is Nothing Then
    '   get interface from model
    Set iApp = iModel.GetApplication
    iApp.LockLicense
    
    '   get interface from calculation
    Dim iCalc As RFEM5.ICalculation2
    Set iCalc = iModel.GetCalculation
    
    '   get interface from results from loadcase 1
    Dim iRes As RFEM5.IResults2
    Set iRes = iCalc.GetResultsInFeNodes(LoadCaseType, 1)
    
    '   get equivalent stresses
    Dim str_equ() As RFEM5.SurfaceEquivalentStresses
    str_equ = iRes.GetSurfaceEquivalentStresses(1, AtNo, VonMisesHypothesis)
    
End If

E:
If Err.Number <> 0 Then
    MsgBox Err.Number & " " & Err.description
End If

If Not iApp Is Nothing Then
    iApp.UnlockLicense
End If

The GetSurfaceEquivalentStresses function requires the specification of the calculation hypothesis. In this case, the results of the von Mises stress are displayed. Please note that the COM interface uses SI units so the stress is transferred in N/m².

Keywords

Dlubal FAQ COM Mises Stresses IResults ICalculation Frequently Asked Question FAQ about Dlubal Question and Answer about Dlubal

Links

Write Comment...

Write Comment...

  • Views 76x
  • Updated 12/15/2020

Contact us

Do you have any questions about our products or need advice on selecting the products needed for your projects?
Contact us via our free e-mail, chat, or forum support or find various suggested solutions and useful tips on our FAQ page.

(267) 702-2815

info-us@dlubal.com

CSA S16:19 Steel Design in RFEM

CSA S16:19 Steel Design in RFEM

Webinar 03/10/2021 2:00 PM - 3:00 PM EST

Online Training | English

Eurocode 5 | Timber structures according to EN 1995-1-1

Online Training 03/17/2021 8:30 AM - 12:30 PM CET

Online Training | English

Eurocode 3 | Steel structures according to DIN EN 1993-1-1

Online Training 03/18/2021 8:30 AM - 12:30 PM CET

Online Training | English

RFEM | Dynamics | USA

Online Training 03/23/2021 1:00 PM - 4:00 PM EST

Plate and Shell Buckling Utilizing Dlubal Software

Plate and Shell Buckling Utilizing Dlubal Software

Webinar 03/30/2021 2:00 PM - 2:45 PM

Online Training | English

RFEM for Students | USA

Online Training 04/21/2021 1:00 PM - 4:00 PM EST

Online Training | English

RFEM | Timber | USA

Online Training 05/05/2021 1:00 PM - 4:00 PM EST

Online Training | English

Eurocode 3 | Steel structures according to DIN EN 1993-1-1

Online Training 05/06/2021 8:30 AM - 12:30 PM

Online Training | English

Eurocode 2 | Concrete structures according to DIN EN 1992-1-1

Online Training 05/11/2021 8:30 AM - 12:30 PM

Online Training | English

Eurocode 5 | Timber structures according to DIN EN 1995-1-1

Online Training 05/20/2021 8:30 AM - 12:30 PM

Online Training | English

RFEM | Basics | USA

Online Training 06/17/2021 9:00 AM - 1:00 PM EST

The Most Common User Errors With RFEM and RSTAB

The Most Common User Errors With RFEM and RSTAB

Webinar 02/04/2021 2:00 PM - 3:00 PM CET

ADM 2020 Member Design in RFEM

ADM 2020 Member Design in RFEM

Webinar 01/19/2021 2:00 PM - 3:00 PM EST

Dlubal Info Day

Dlubal Info Day Online | December 15, 2020

Webinar 12/15/2020 9:00 AM - 4:00 PM CET

FEA Troubleshooting and Optimization in RFEM

FEA Troubleshooting and Optimization in RFEM

Webinar 11/11/2020 2:00 PM - 3:00 PM EST

Soil-Structure Interaction in RFEM

Soil-Structure Interaction in RFEM

Webinar 10/27/2020 2:00 PM - 2:45 PM CET

NBC 2015 Modal Response Spectrum Analysis in RFEM

NBC 2015 Modal Response Spectrum Analysis in RFEM

Webinar 09/30/2020 2:00 PM - 3:00 PM EST

Documenting Results in the RFEM Printout Report

Webinar 08/25/2020 2:00 PM - 2:45 PM

ACI 318-19 Concrete Design in RFEM

ACI 318-19 Concrete Design in RFEM

Webinar 08/20/2020 2:00 PM - 3:00 PM EST

How to Be More Productive Using RFEM

How to Be More Productive Using RFEM

Webinar 07/07/2020 3:00 PM - 4:00 PM

Introduction to Solid Modeling \n in RFEM

Introduction to Solid Modeling in RFEM

Webinar 06/30/2020 2:00 PM - 3:00 PM EST

Modeling with Solids in RFEM

Modeling with Solids in RFEM

Webinar 06/09/2020 3:00 PM - 3:45 PM