Table or polynomial boundary condition

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

March 15, 2019, 12:33
Table or polynomial boundary condition
#1
New Member

Luka Vincekovic
Join Date: Mar 2019
Posts: 3
Rep Power: 2
Hi all,
I am trying to insert flow direction as boundary condition via table. As far as I realised this can't be done. It is either value or expression, right?

So my question is, if I have a table which for example, describes some boundary condition what is the best way to import it as an expression?
Can someone please explain the procedure?

Let's say that we start from 100x100 values x-y table which describes total pressure. How do you get polynomial and import it in CFX? I attached how the pressure looks like when you plot it in MATLAB.

Thanks, Luka

Attached Images
 Capture.PNG (47.9 KB, 9 views)

 March 15, 2019, 12:38 #2 Senior Member   Join Date: Jun 2009 Posts: 911 Rep Power: 17 In ANSYS CFX, a table is an expression via a function. Check the documentation for how functions work in expressions.

 March 15, 2019, 12:41 #3 New Member   Luka Vincekovic Join Date: Mar 2019 Posts: 3 Rep Power: 2 Yeah, I managed to get an expression working but it doesn't show what I want. Do you have an idea how to describe attached contour with polynomial that would work? Thanks

 March 15, 2019, 19:03 #4 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 15,480 Rep Power: 118 You could use a 3D interpolation function, a polynomial which describes the function as a CEL expression or a user fortran routine to define it. CFX has lots of ways to do it. __________________ Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.

 March 18, 2019, 12:34 #5 Senior Member   Erik Join Date: Feb 2011 Location: Earth (Land portion) Posts: 819 Rep Power: 16 Yes, there are lots of ways to do it. Easiest would be the 3D interpolation function that uses your 100x100 table directly. Make it a function of (x,1,z) format your table with 4 columns, using: x, 1, z, PressureValue. Then make an expression for P_inlet which would be a call to the function: PressureFunction(x,1,z). To make a polynomial, you will have to develop an equation for a 2D surface, which is difficult, and usually not very accurate for complex surfaces.

 March 19, 2019, 05:30 #6 New Member   Luka Vincekovic Join Date: Mar 2019 Posts: 3 Rep Power: 2 Thank you all for the help, just a quick update. I managed to import all the data as a table at the end. It is possible to import also the velocity direction as a table. I did a bit of reverse engineering. So in CFX Post you can see what data you can export from your boundaries and all these data can be imported as a table into CFX Pre. So I took a table from CFX Post and just changed the values with what I needed and put it into CFX Pre.

 March 20, 2019, 13:15 #7 Senior Member   Erik Join Date: Feb 2011 Location: Earth (Land portion) Posts: 819 Rep Power: 16 Yes you can import velocity as a table, or just about anything else you wish.

 Tags cfx, polynomial bc, polynomial eqn.

 Thread Tools Search this Thread Search this Thread: Advanced Search 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 Madhatter92 CFX 12 January 12, 2016 05:39 Saima CFX 45 September 22, 2015 11:53 mpeppels CFX 10 June 16, 2015 16:48 schröder OpenFOAM Programming & Development 3 April 21, 2015 06:09 sunilpatil CFX 8 April 26, 2013 08:00

All times are GMT -4. The time now is 19:00.

 Contact Us - CFD Online - Privacy Statement - Top