Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternative Contour Plots

Status
Not open for further replies.

jacasalr

Materials
Feb 28, 2020
27
Hello everybody,

I am new in this community and relative new as FEMAP's user.

This time I would like to ask for help since I want to get a contour plot of a variable which is not default at FEMAP. I want to plot the stress field according to the Mohr-Modified Theory. I imagine I should use an API but I am not sure.

Thank a lot in advance.
 
Replies continue below

Recommended for you

Run Model->Output_>Calculate to create new output vector based on existing stress tensor components. Read help to become familiar with Femap equation syntax.
%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA_b1bho0.png
 
Thank you very much for your answer, karachun.

Nonetheless, the equation that I want to write is a conditional one, as follows:

Mohr-Columb_zkzcka.jpg


So I am wondering how can I write this equation in Model/Output/Calculate, or should I write an API? How can I do this?

Thanks a lot in advance.
 
Output->Calculate does not support IF/Else statements. Therefore, API is the only variant.
I don’t know Femap API at all. You may ask for help on this forum or at Siemens Community.
Link
 
Thanks a lot for your quick response, karachun.
 
Hi jacasalr,

For sure you can solve this task using Femap API.

In general, your need to create a new output vector based on the post-processed data from another calculated result vector/s.
Actually, in femap/customtools panel there are a lot of scripts for data post-processing, you can find them in femap folder\api\PostProcessing.
Then you can try to update one of the existing scripts for your needs. Or to create a new one based on the prototype.
However, if you are very new to Femap API, this task can be quite time-consuming as you need to learn a lot about API, but if you have good general programming skills and love it, the process can be nice and fun ;).

Also, I can say for sure that the Femap API specialists already have some own existing code templated for results data postprocessing and new output data creating. So they can relatively quickly provide you with the femap api script/tool solution with a convenient graphical user interface.

 
Thanks a lot ship_sftwr_dev!

I enjoy programming so I will take a look on Femap's sintaxis so I may be able to develop a proper API for this task!

Thanks again for your reply!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor