# Realizing algorithm in CFX

 Register Blogs Members List Search Today's Posts Mark Forums Read

 October 29, 2007, 04:06 Realizing algorithm in CFX #1 Bloshchitsyn Vladimir Guest   Posts: n/a Sponsored Links Hello! I want realize algorithm for computing source term ( x, y, z) in CYLINDER region (subdomain): 1) Calculate inegral for specified Z section ( to determine ~ E electric field by current ) ... Intergal will be dounle summ of Temperature ( Function of temperature ) by x and y 2) Calculate source term using resuls of step 1) AFAIK, for this procedure I should use functions like described there http://www.cfd-online.com/Forum/cfx_...cgi?read=21401 ---------------------- 1 - USER_CALC_INFO to determine the LOCALE and ENTITY for step 3 2 - USER_GETVAR to get the "vector variable" 3 - USER_GET_MESHDATA to get the Normal Area Vector. Here you must use WHAT='Normal Area Vector", WHERE=Faces|Integration Points depending if ENTITY=CENTRE|IP 4 - USER_GET_MESHDATA to get the Volume Sector using WHAT='Volume', and WHERE='Sectors' Then, pass the stack pointers into a local routine that will compute something like (be careful with indexing and array shapes). DO I = 1, N VAR(I) = (VECTOR(1,I)*AREA(1,I) +VECTOR(2,I)*AREA(2,I) +VECTOR(3,I)*AREA(3,I)) / VOLSEC(I) ENDDO ----------------------------------------------- Can you present, this algorithm more detailed? hwykim likes this.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Ema CFX 4 August 7, 2009 05:39 Simulation Engineer CFX 1 April 22, 2009 11:08 Atit Koonsrisuk CFX 4 July 26, 2006 11:59 Craig Johansen CFX 0 August 27, 2004 23:02 Pandu Sattvika CFX 1 December 1, 2001 05:07