CFD Online Logo CFD Online URL
Home > Forums > CFX

Element coordinates for momentum source model

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

LinkBack Thread Tools Display Modes
Old   October 5, 2007, 07:29
Default Element coordinates for momentum source model
Posts: n/a
Hi all,

I have some questions for CFX-10. I am working on a momentum source model, where amongst others, the momentum sources are dependent on the radial extent (dr) of the elements.

I am making the momentum source in fortran, and I want to make a User CEL function. I guess the functions USER_CALC_INFO and USER_GET_MESHDATA should be able do do the job, but I don't think there is some real examples of how to implement them in a User CEL function in the CFX manual.

It might be simple for those who are more into it, and they might also argue that it is well documented in the manual, but if anyone has a small example of how to calculate dr or retrieving the coordinates I want, it would be greatly appreciated
  Reply With Quote

Old   October 5, 2007, 10:46
Default Re: Element coordinates for momentum source model
Posts: n/a
You don't need to use USER_CALC_INFO or USER_GET_MESHDATA to do this. Simply pass your variable/expression (dr) as an argument to the function, and it will be available in the ARGS() array in the fortran routine.

See the example on setting a user momentum source (MomentumSource1.F), where X and Y are passed as arguments and used to set the source.

  Reply With Quote

Old   October 10, 2007, 08:21
Default Re: Element coordinates for momentum source model
Posts: n/a
Thank you Johnson,

At first I was kind of looking after the vertex coordinates of the elements, and from these calculate dy and dz of the elements (and afterwards dr). But I don't think I am skilled enough into the data-structure in user Fortran.

Consequently I am using a method much like you suggested to calculate volume sources as a function of the centre of the coordinate centre of the elements

Regards CFDworker
  Reply With Quote

Old   October 10, 2007, 11:05
Default Re: Element coordinates for momentum source model
Posts: n/a
Why do you need the topology at all?
  Reply With Quote


Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of k-epsilon and k-omega Models Jade M Main CFD Forum 12 June 2, 2015 13:16
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
momentum source term depending on cell coordinates nikolas FLUENT 0 January 30, 2007 11:00
Problem: buoyancy source term for KE-EP model Andrey V.Ivanov Phoenics 0 May 23, 2003 03:50
2-equation model of LES and source code M.R.Hadian Main CFD Forum 0 February 3, 2002 06:00

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