CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

How to get vertex(node) number in CFX user Fortran..

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 1, 2014, 06:30
Default How to get vertex(node) number in CFX user Fortran..
  #1
New Member
 
Join Date: Feb 2012
Posts: 6
Rep Power: 14
flyply is on a distinguished road
Hello.
I try to input the external data into the CFX.
External data was generated by 3rd party software.

Data is exactly same with mesh data, but only contain the X, Y, Z coordinate and one Scalar data. so external data array size is (total node number x 4).

anyway, At present, I match the data like this(very simple &stupid )
=====================================
PRINT *, 'NLOC = ', NLOC
DO ILOC = 1, NLOC
FR(ILOC) = 0.0
DO LN = 1, NLIN
IF (ABS(X(ILOC) - TABLE(1,LN)) .LE. 0.000001 .AND.
& ABS(Y(ILOC) - TABLE(2,LN)) .LE. 0.000001 .AND.
& ABS(Z(ILOC) - TABLE(3,LN)) .LE. 0.000001) THEN
FR(ILOC) = TABLE(4, LN)
END IF
END DO
END DO
=====================================

This method working well. but very slow, especially in Large Problem.
In my case, using 9 million node, It took 5 hours.

So, I try to match the node(vertex) number.
but there are no information, how to access the vertex number, in User Guide.
but, i find some clue in CFX Modeling Guide : 18.5.5.1 Message


CALL MESAGE( 'WRITE', 'Max Temp is '//CFROMR(TMAX)//’ at vertex’// & CFROMI(IVX)

'IVX' seems to Vertex number, but when i try to like this
=======================================
CALL PEEKI ('/USER/'//CDIR_GLOB//'/IVX', 1, IVX,
& 'STOP', CRESLT, IZ)
=======================================
It show the error message like bellow.
=======================================
Details of erros:--
Error detected by routine PEEKI
CDNAM = /USER/MESH_INFO/IVX
CRESLT = NONE
Current Directory : /FLOW/SOLUTION/TSTEP10/CLOOP1/ZN1/VERTICES
.
.
=======================================
Anyway, Is there anyone who knows about how to get Vertex Number in CFX user Fortran??
flyply is offline   Reply With Quote

Old   February 2, 2014, 17:18
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
What are you trying to do with the external data? Is it during the solver or post processing?
ghorrocks is offline   Reply With Quote

Old   February 4, 2014, 11:44
Default
  #3
New Member
 
Join Date: Feb 2012
Posts: 6
Rep Power: 14
flyply is on a distinguished road
Hello, ghorrocks
It is for Chemical Reaction and External Data is UV intensity.
for the present, I improved the algorithm and it is worth, but not sufficient.
I take fluent into account.
flyply is offline   Reply With Quote

Old   February 4, 2014, 18:16
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
CFX already has a 3D interpolation function available. But if you have millions of nodes it will probably take a while to run as well. But it might be faster than your implementation.
ghorrocks is offline   Reply With Quote

Old   February 4, 2014, 20:51
Default
  #5
New Member
 
Join Date: Feb 2012
Posts: 6
Rep Power: 14
flyply is on a distinguished road
Yes. I already know, but 3D interpolation is very slow in my case. so I trying to do with fortran. but i will one more check the user guide about 3D interpolation.
thanks.
flyply is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX User Fortran: Particle User Sources hustxinxin CFX 0 March 8, 2012 09:31
CFX Solver Reynolds Number haider760 CFX 2 March 4, 2012 23:05
Check particle impaction with User Fortran Julian K. CFX 3 January 12, 2012 10:46
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 11:37
how to use USER FORTRAN with CFX cfd_99 Main CFD Forum 1 June 4, 1999 06:42


All times are GMT -4. The time now is 13:39.