|
[Sponsors] |
October 20, 2010, 18:08 |
Plotting subdomain energy source term
|
#1 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
Hi, everyone
I am trying to plot an energy source term I have added in a CFX subdomain. I want to check the plot of the source terms in my domain to see if its interpolating correctly. I knew how to do this with Fluent but not with ANSYS12 workbench. Does anyone know an easy way to do this? Thanks in advance |
|
October 20, 2010, 18:48 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144 |
Does it evaluate to a single value, or do does the source vary over space?
For the first, write it to a CEL variable and send it to a monitor point. For the second write it to an additional variable (a CEL variable) and view it is CFD-Post. |
|
October 20, 2010, 19:43 |
|
#3 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
Thank you for your prompt reply. What you say makes sense but I'm kind of a newbie to ANSYS12 and I would appreciate if you could develop this a little bit more. I really don't know how to do what you are proposing.
Up to now I have created a 3D user defined function in CFX-Pre (it imports x,y,z coordinates and the energy) and used it as a source in a subdomain. As far as I know this is the data interpolation method. I haven't created a CEL routine even though I read in the manual that first you create the CEL routine and then the function. It seems to work though but this could be the reason why I don't seem my function in CFX-Post. Am I misunderstanding something? Do I really have to define my CEL routine? Could you please shed some light on this? Already thank you for your time! |
|
October 20, 2010, 20:05 |
|
#4 |
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17 |
Create an algebraic Additional Variable, set it equal to your source function, and plot it in CFD Post.
|
|
October 20, 2010, 20:28 |
|
#5 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
Thank you guys. that made the trick. If someone still has the time to clarify why the manual recommends creating a CEL routine before the user defined function it would help me understand the intricacies of the workbench. An example on when to go by each of this ways would be enough.
thanks |
|
October 20, 2010, 20:35 |
|
#6 |
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17 |
Can you quote the section of the manual?
I always use a CEL expression (not a "routine" (?) ) to reference 1d interpolation user function to facilitae plotting them in pre to check that they are correct. |
|
October 20, 2010, 21:03 |
|
#7 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
This is what the manual says. I'm not sure to understand what it means though:
User CEL Functions are used in conjunction with User CEL Routines. A User Function must be created after a User CEL Routine. For details, see User CEL Routines. User Functions set the name of the User CEL Routine associated with the function, the input arguments to pass to the routine and the expected return arguments from the routine.
|
|
October 20, 2010, 21:49 |
|
#8 |
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17 |
You don't have a user CEL routine, you have a 3D interpolation user function. You can either create a CEL expression to reference or not whichever you prefer.
|
|
October 20, 2010, 22:08 |
|
#9 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
Hi again Michael. It's probably the concept what I don't understand. The difference between a CEL routine/expression and a user function. I've been looking through the manual trying to find a consistent definition but I haven't seen anything. Would you mind developing this a little bit more?
Btw, I'll make the most of your expertise. I hope you don't mind! I'm having trouble working with big source meshes (200x200x40). Memory allocation problems that don't get fixed even when raising the stack size in the advance panel option. Doesn't seem to me big enough so that a program like ANSYS can't handle it. Any workaround for this? Thank in advance |
|
October 20, 2010, 22:50 |
|
#10 | ||
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,844
Rep Power: 144 |
Quote:
Quote:
|
|||
October 20, 2010, 23:57 |
|
#11 | |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
Hi again
With source mesh I was referring not so much to the model mesh, but to the source mesh. In other words, I am interpolating a 3D source (200x200x40) I have in a file onto my ANSYS mesh, which is finer. For such a size of the source mesh I get the memory allocation problem I was talking about before. Any ideas on what to do? Quote:
|
||
October 21, 2010, 11:32 |
|
#12 |
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17 |
So you have 800,000 data points in your 3D interpolation user function? Can you reduce the resolution of it? Do you need that resolution?
Failing that, what is the exact error you get, and what are the exact memory settings you are using? |
|
October 21, 2010, 13:57 |
|
#13 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
Yes, ideally I would need such a resolution. I don't recall now the exact error and I can't reproduce it now. But it basically was a MEMORY ALLOCATION PROBLEM that happened even before the code started running (while preparing for the run). I guess that it was doing the interpolation and ran out of memory. IT recommended raising the stack size but nothing changed even when setting all to the maximum allowable. Any clues?
|
|
October 21, 2010, 13:59 |
|
#14 |
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17 |
Break up the source subdomain into multiple, smaller subdomains and use multiple, smaller 3D interpolation tables. That's the best idea I have without either reducing the resolution of the tabular data or using FORTRAN.
|
|
October 21, 2010, 14:26 |
|
#15 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
And what benefits would using FORTRAN add?
|
|
October 21, 2010, 14:36 |
|
#16 |
Senior Member
Michael P. Owen
Join Date: Mar 2009
Posts: 196
Rep Power: 17 |
Possibly circumventing the CFX memory allocation limits. But frankly, I'm not sure.
|
|
October 21, 2010, 14:47 |
|
#17 |
New Member
Antonio
Join Date: Aug 2010
Posts: 19
Rep Power: 16 |
||
Tags |
plotting, source, subdomain |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |