Api Tutorial | Femap

In this example, we will retrieve the displacement results from the analysis we ran in Step 2.

import femapi # Open the model model = femapi.OpenModel("simple_beam.mod") # Get the analysis results results = model.Analyses.Results # Get the displacement results displacements = results.Displacements # Print the displacements print(displacements) femap api tutorial

In this example, we will run a static analysis on the model we created in Step 1. In this example, we will retrieve the displacement

import femapi # Open the model model = femapi.OpenModel("simple_beam.mod") # Create a new analysis analysis = model.Analyses.Create() # Set the analysis type analysis.Type = "Static" # Run the analysis analysis.Run() # Get the analysis results results = analysis.Results # Print the results print(results.Displacements) We will use Python as our programming language

In this example, we will create a simple Femap model using the API. We will use Python as our programming language.

ĐĂNG KÝ HỌC ĐÀN