FEAP User Forum

FEAP => Parallel FEAP => Topic started by: shenrilin on August 07, 2017, 02:23:55 PM

Title: node number/connectivities
Post by: shenrilin 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,
Title: Re: node number/connectivities
Post by: Prof. S. Govindjee 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.
Title: Re: node number/connectivities
Post by: shenrilin 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.

Title: Re: node number/connectivities
Post by: Prof. S. Govindjee 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?
Title: Re: node number/connectivities
Post by: shenrilin 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.
Title: Re: node number/connectivities
Post by: FEAP_Admin 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 )
Title: Re: node number/connectivities
Post by: shenrilin on August 09, 2017, 08:35:52 AM
Thanks very much,

that's what I'm looking for.

Best regards,