Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Connect of the weld elements

[ Edited ]

Hello all.

In the simulation of the weld along the contour of the two plates I use weld elements 2..Elem Vertex to Elem Vertex (ALIGN), this method takes a long time.

How to speed up this process?

Way of combining Mesh-Connect-Closest Link does not work with weld elements.

 

 

(view in My Videos)

11 REPLIES
Solution
Solution
Accepted by topic author Cfytrr
‎08-26-2015 04:32 AM

Re: Connect of the weld elements

Here's an API that will process a coincident node check, allowing you to pick the nodes, specify a tolerance, and then pick a Weld property.  The API will then create a Weld element between each of the coincident node pairs.

Re: Connect of the weld elements

Masherman.

 Thank you very much, your solution will be very helpful in my work!

Re: Connect of the weld elements

Masherman.

Your program works well when the distance between nodes plate elements is more than the distance between the plates. When reducing the size of the grid there is an error. It is possible to fix?

(view in My Videos)

Re: Connect of the weld elements

With the coincident node methodology in the original API, no, there's no way to update it.  I propose in this case you use FEMAP's built in Mesh - Connect - Closest Link.  Pick the nodes around the smaller part first, and then in the second node selection pick all the nodes on the plate.  Choose a Plot Only Line Property such that Plot Only Line elements get generated.  Use the following API to convert Plot Only Lines to Welds.

Re: Connect of the weld elements

Thank you. This method of creating elements is more accurate.

Re: Connect of the weld elements

Thank you for your contribution.

 

Could you help me please?

 

I m working hard to create cweld element prop to prop. In fact I accomplished to create the element but I don t know how to set the node ID. My code below:

 

Thank you!

 

 The HTML Clipboard

Sub Main

    Dim App As femap.model
    Set App = feFemap()

    Dim feElem As femap.Elem
    Set feElem = App.feElem

    Dim feProp As femap.Prop
    Set feProp = App.feProp


            'Element Types
            feElem.type = FET_L_WELD
            'Element Topology Type
            feElem.topology = FTO_WELD2
            'connectTYPE[0] specifies type of weld element
            'feElem.connectTYPE(0) = 4 --> means prop to prop
feElem.connectTYPE(0)=4
rc = feProp.SelectID( "Select Weld Property to Use" ) feElem.propID = feProp.ID feElem.connectSEG(0) = 1 'patch 1 prop ID=1 feElem.connectSEG(1) = 2 'patch 2 prop ID=2 feElem.connectTYPE(1) =0 'weld location by projection=0 axis=1
feElem.Node(0)=91 'node ID to project
rc = feElem.Put( feElem.NextEmptyID() ) End Sub

 

Re: Connect of the weld elements

Hi PauloVikto, 

 

To specify the "Weld Location Node" via the API, you would need to set the "Element" object's "orientID" property to the corresponding "Node ID" that you want to use for the projection (rather than using the object's "node" array). From the "API Reference," orientID specifies "the orientation node for elements like bars and beams that require an orientation."

 

I've updated your code to reflect this by replacing this line:

feElem.Node(0)=91 'node ID to project

 

with this: 

feElem.orientID = 91 'node ID to project

  

           'Element Types
            feElem.type = FET_L_WELD
            'Element Topology Type
            feElem.topology = FTO_WELD2
            'connectTYPE[0] specifies type of weld element
            'feElem.connectTYPE(0) = 4 --> means prop to prop
              feElem.connectTYPE(0)=4

            rc = feProp.SelectID( "Select Weld Property to Use" )
                    feElem.propID = feProp.ID
                    feElem.connectSEG(0) = 1 'patch 1 prop ID=1
                    feElem.connectSEG(1) = 2 'patch 2 prop ID=2
                    feElem.connectTYPE(1) =0 'weld location by projection=0 axis=1
                    feElem.orientID = 91 'node ID to project

                    rc = feElem.Put( feElem.NextEmptyID() )

 

Thanks,

 

OmarM 

 

Re: Connect of the weld elements

Thank you vary much Mr Omar!

 

I really appreciated your help. The code is working perfectly. The next step is programme the same code but now listing many nodes ID.

 

Best regards!

Re: Connect of the weld elements

Hello again Mr Omar!

 

I have another question for you. I am thinking the best way to create cweld element using the option element to element and a node of projection.

 

In fact the user should chose many nodes of projection, the elements to path 1 and other elements to the path 2. The program should be able to find the closest two elements to project each node. The idea is to check the distance from the node to the CG from all elements from path 1 and path 2. The best elements to project the node are the elements with the shortest distance.

 

What do you think? There are an other way to solve this problem?

 

Thank you!