Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2019-09-24 08:42:39

nirmaljoshi
Member
From: Japan
Registered: 2018-10-12
Posts: 161

select nodes of quadratic mesh

In salome meca I could not find way to make a group of mesh to select all nodes of quadratic mesh (face). Has this to be done in code-aster itself? If so how? I need it to extract the reaction forces from the nodes.

Offline

#2 2019-09-24 09:50:44

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,625

Re: select nodes of quadratic mesh

hello

are you sure the middle nodes of a quadratic mesh do carry a reaction force ?
i am not !
a way to find out whould be to print the reaction in ascci on a few elements

jean pierre aubry


consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/

Offline

#3 2019-09-24 21:09:06

konyaro
Member
From: Genève
Registered: 2016-04-02
Posts: 223

Re: select nodes of quadratic mesh

Hello,
I use the following script in Salome to select the middle nodes of a surface face0 from a mesh mesh0:

newGroup = []
listElem = face0.GetListOfID()
for elem in listElem:
    nds = mesh0.GetElemNodes(elem)
    for nd in nds:
        if mesh0.IsMediumNode(elem, nd):
            newGroup.append(nd)
                     
gr01 = mesh0.MakeGroupByIds("gr01", SMESH.NODE, newGroup)            
smesh.SetName(gr01, 'gr01')

I don't understand why you want to extract these forces but the script above should work.

Konyaro

Last edited by konyaro (2019-09-26 20:48:22)


失敗は成功のもと (L'échec est la base de la réussite)

Offline

#4 2019-09-25 03:31:05

nirmaljoshi
Member
From: Japan
Registered: 2018-10-12
Posts: 161

Re: select nodes of quadratic mesh

@Konyaro: Thanks a lot. I got the idea.

@jeanpierreaubry: I will test and post it here. The reaction forces values were correct when i used linear mesh but it showed error when i switched to quadratic mesh.

Last edited by nirmaljoshi (2019-09-25 03:31:40)

Offline