|
[Sponsors] |
Element coordinates for momentum source model |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 5, 2007, 08:29 |
Element coordinates for momentum source model
|
#1 |
Guest
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 |
|
October 5, 2007, 11:46 |
Re: Element coordinates for momentum source model
|
#2 |
Guest
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. Johnson |
|
October 10, 2007, 09:21 |
Re: Element coordinates for momentum source model
|
#3 |
Guest
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 |
|
October 10, 2007, 12:05 |
Re: Element coordinates for momentum source model
|
#4 |
Guest
Posts: n/a
|
Why do you need the topology at all?
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of k-epsilon and k-omega Models | Jade M | Main CFD Forum | 40 | January 27, 2023 08:18 |
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 04:50 |
2-equation model of LES and source code | M.R.Hadian | Main CFD Forum | 0 | February 3, 2002 06:00 |