Author Topic: node number/connectivities  (Read 6472 times)

shenrilin

  • Full Member
  • ***
  • Posts: 67
node number/connectivities
« on: August 07, 2017, 02:23:55 PM »
Dear Professor,

Thanks very much. I installed the parallel feap on both my laptop and cluster.

I have one more question.  When using 2 or more processors in the parallel feap, how can I get the node number/connectivities associated with the specific element?

In serial feap, I can get node number for ix(1:nen, 1), but in parallel version, the information of "ix" array changes and I don't exactly know how to deal with this issue.

Thanks again for your help.

Best,

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: node number/connectivities
« Reply #1 on: August 07, 2017, 05:58:54 PM »
Can you be more specific about what you want to do?  Also be precise since there is a global numbering system and a per processor numbering system.

shenrilin

  • Full Member
  • ***
  • Posts: 67
Re: node number/connectivities
« Reply #2 on: August 07, 2017, 06:31:25 PM »
Dear Professor,

Thank you for your concern.

take a simple example.

In the initial input file, there are four quadrilateral elements and their connectivities are defined as:
Code: [Select]
Elements
1, 0, 1, 1, 5, 9, 8
2, 0, 1, 5, 2, 6, 9
3, 0, 1, 9, 6, 3, 7
4, 0, 1, 8, 9, 7, 4

In a serial feap or parallel feap with one processor, one can access the connectivities of element 3 from "ix(1:nen,1)", that is 9,6,3,7

When using two or more processors, I still want to get the original connectivities information of element 3, that is, 9,6,3,7 no matter how many processors were used.

Because I want to define static field variables on the mesh. I have more than one static field variables needed to be defined but not familiar with umesh.f.  So I'm ready to use a slow and maybe stupid method to read data from the file in the user element.

Best regards.

« Last Edit: August 07, 2017, 06:48:45 PM by shenrilin »

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: node number/connectivities
« Reply #3 on: August 07, 2017, 10:40:07 PM »
Explain more. Given a global element number you want the global connectivities?  or do you want to know which processors have that global element and what the associated local connectivities are?

shenrilin

  • Full Member
  • ***
  • Posts: 67
Re: node number/connectivities
« Reply #4 on: August 08, 2017, 07:57:11 AM »
Dear Professor,

From "ix ", we can get the local connectivity for each partition.

I read data from the outer file in which all nodes are assigned values. Then, I want to find the original node number in the user element so that I can assign field value to the specific node.

I'm not sure if global node number is the node number in the initial input file, IUEX.

Best regards.

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: node number/connectivities
« Reply #5 on: August 08, 2017, 02:38:11 PM »
The global node numbers for each local node are store in the array GN  == mr(np(244)).

Code: [Select]
global_node_for_local_node = mr( np(244) + local_node - 1 )

shenrilin

  • Full Member
  • ***
  • Posts: 67
Re: node number/connectivities
« Reply #6 on: August 09, 2017, 08:35:52 AM »
Thanks very much,

that's what I'm looking for.

Best regards,