|
[Sponsors] |
October 8, 2010, 10:42 |
USER_FORTRAN call variable at adjacent nodes
|
#1 |
New Member
Filippo Pellacani
Join Date: Jul 2010
Location: München
Posts: 13
Rep Power: 15 |
Hi,
I implemented already an Additional Variable under the form of a Transport equation. I didn´t get good results and I would like to have full control on the implemented transport equation. The problem is essentially the presence of the diffusive term in the equation provided by Ansys CFX (I don´t need it) and the presence of the volume fraction in the formulation of each term. For this reason I decided to implement a new variable linked to User_CEL. Inside the routine then, linearize the system and solve it iteratively. I would like to receive some information regarding the following aspect: 1) Convective term: div(U*variable) Which is the function I need to call the East, West, North, South, Top, Bottom values related to the actual control volume? In this way I could linearize the convective term too. Thank you in advance, Filippo |
|
October 8, 2010, 13:15 |
|
#2 |
Senior Member
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17 |
There is a argument called oper in getvar. May be you can call it with DIV or something like that.
|
|
October 9, 2010, 05:50 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143 |
CFX uses tet, prism and hex element meshes, which form polyhedral control volumes at the nodes. There is no concept of N, S, E, W. Read the documentation for details of how the mesh is handled.
But I repeat my original question - why can't you do what you want using a normal additional variable and what are you trying to do anyway? |
|
October 9, 2010, 14:05 |
|
#4 |
Senior Member
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17 |
Glenn is right. May be we can help you, when you tell us what it means that you get no good results.
|
|
October 11, 2010, 05:06 |
|
#5 |
New Member
Filippo Pellacani
Join Date: Jul 2010
Location: München
Posts: 13
Rep Power: 15 |
It means that the comparison of the simulation results with the experimental one is very bad. The form of the transport equation I want to implement differs from the transport equation that is possible to implement in CFX.
I worked during the last months to implement a one group interfacial area transport equation for the calculation of the interfacial area density. In a gas dispersed liquid continuous simulation. (bubble column D=200mm H= ca. 8 m, experimental data from Research center Dresden Germany). The MUSIG approach even producing goos results needs really a lot of resources. Other researcher implemented the same models in their own codes and the results seems to be very good in isothermal and non isothermal condition. Could you please tell me something more about the oper argument in the user_getvar function? Where could I read something more about it. Bye, Filippo |
|
May 20, 2011, 05:37 |
|
#6 |
New Member
Filippo Pellacani
Join Date: Jul 2010
Location: München
Posts: 13
Rep Power: 15 |
it is not easy to implement but it is possible to create a mapping subroutine (junction box) reading the cfx5 file of the mesh. you can order the points in a clear and easy way. then you should compare during the solution stage in a user cel/junction box the actual point with the point in the list created at the beginning of the simulation and search for the neighbours. it will speed down the computational time but will allow you to do gradients with an higher order of accuracy than the central differences scheme adopted by ANSYS CFX.
|
|
December 10, 2011, 11:02 |
|
#7 |
New Member
Riccardo Conte
Join Date: Dec 2011
Posts: 1
Rep Power: 0 |
Filippo,
can you tell me how did you manage to create the mapping subroutine, please? Did you use theCAL_MESHMAP subroutine in a junction box? I am trying to have access to the adjacent nodes because I want to do a volume averaging of a variable. Thank you! Last edited by rickyc; December 12, 2011 at 04:57. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
USER_FORTRAN call variable at past timestep | fipellac | CFX | 11 | June 14, 2012 09:52 |
error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | COMSOL | 1 | May 30, 2008 04:35 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 04:27 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 12, 2001 23:19 |