User login

Navigation

You are here

Finding a node by using the coordinates

I am failry new to Abaqus. I am working on Abaqus CAE. I want to find the nodal temperature ouput for a particular location.

I know the location(X;Y;Z) values but i dont know the node label. How to do i identify the node in CAE?

Comments

In the Python window:

1) Get the nodes list using

allNodes = mdb.models['Model-1'].rootAssembly.nodes

2) create a bounding box

delta = 1.0e-4

xmin, ymin, zmin = x-delta, y-delta, z-delta

xmax, ymax, zmax = x+delta, y+delta, z+delta

3) Get nodes that lie inside the bounding box

myNodes = allNodes.getByBoundingBox(xmin, ymin, zmin, xmax, ymax, zmax)

etc.

hi, i am a new user for abaqus python scripting . I used this code and it was great for select many nodes  but how can it be for selecting one node close to specific node with (x,y,z)

Frank Richter's picture

Hello,

below is the installation instruction and the code of a plug-in "findNearestNode_plugin.py", previously available from the site simulia.custhelp. Regrettably, this site is down. The code is for an earlier version of Abaqus, and I have no opportunity to test its functionality in present-day versions.

-----------------------------------------------------------------------------------------

Find Nearest Node Plug-in

NOTE: This plug-in has undergone testing and is expected to work with the version of Abaqus that it is shipped with. However, the level of testing is not as stringent as that for the Abaqus products in general. Limited support will be available from Dassault Systemes, for this plug-in, and it may not be available with future Abaqus releases.

Overview

This plug-in locates the node in a model database (MDB) or output database (ODB) that is nearest to a specified coordinate point. The plug-in works with meshed models (in an MDB) and undeformed plots (in an ODB); the plug-in does not work with deformed plots in an ODB.

For large models, you can specify the area of the model to search by selecting a subset of nodes from the viewport.

Installation

To install the plug-in, unzip and save the contents of the attached archive to one of the following directories:

abaqus_dir\cae\abaqus_plugins, where abaqus_dir is the ABAQUS parent directory
home_dir\abaqus_plugins, where home_dir is your home directory
current_dir\abaqus_plugins, where current_dir is the current directory

After installing the plug-in, start Abaqus/CAE and enter any assembly-related module or the Visualization module. Find Nearest Node is available in the Plug-ins menu on the main menu bar (Plug-insàAbaqusàFind Nearest Node).

Usage

Enter the X, Y, and Z coordinates for the starting point. Click Find to highlight in the viewport the node nearest to the specified starting coordinates. Click the Select Nodes for Reduced Search button and select nodes in the viewport to limit your search to a particular area of the model.

Limitation

When searching in reduced mode, only nodes on one instance can be selected.

---------------------------------------------------------------------------------

from abaqusGui import *
import _abqPluginUtils, os
thisPath = os.path.abspath(__file__)
thisDir = os.path.dirname(thisPath)

# Use package syntax to avoid possible name clashes with other plugins
#
from abq_FindNearestNode.nearestNodeForm import NearestNodeForm

# Register commands
#
version = '2.1-1'
status = _abqPluginUtils.checkCompatibility('Find Nearest Node', version)
if status == 'OK':
toolset=getAFXApp().getAFXMainWindow().getPluginToolset()
toolset.registerGuiMenuButton(
object=NearestNodeForm(toolset),
buttonText='Abaqus|Find Nearest Node...',
messageId=AFXMode.ID_ACTIVATE,
icon=None,
kernelInitString='import abq_FindNearestNode.nearestNodeModule',
applicableModules=["Assembly","Step","Interaction","Load","Mesh","Job", "Visualization"],
version=version,
author='Dassault Systemes',
description='This plug-in finds the nearest node to a given point.',
helpUrl=os.path.join(thisDir, 'abq_FindNearestNode', 'NearestNode_help.html'),
)
else:
getAFXApp().getAFXMainWindow().writeToMessageArea(status)
getAFXApp().beep()

Thanks frank for your quick response. I tried your suggestion and it was new for me but it does work with selecting the nearest node and assign displacement for this one by scripting code? I try to find the nearest node from specific one with (x,y,z) then apply a displacement for this nearest one. I hope you can suggest one.

best wishes

Subscribe to Comments for "Finding a node by using the coordinates"

More comments

Syndicate

Subscribe to Syndicate