CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Polynomial function in star ccm+

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By wassli
  • 1 Post By anon_l

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2016, 09:57
Default Polynomial function in star ccm+
  #1
Disabled
 
Join Date: Jun 2016
Posts: 13
Rep Power: 9
anon_l is on a distinguished road
Hi all,

I am trying to enter the density and specific heat of H2O as a polynomial fumction in star ccm+ since I want to make a simulation for super critical conditions.
I use the data from NIST(http://webbook.nist.gov/cgi/fluid.cg...s&STUnit=N%2Fm)
AND then , I use EXCEL to generate a polynomial function of order 6 for my data .

However , after defining the polynomial function in star ccm+ , I get a weird curve . I am including a picture of that in this post .
Can someone let me know how I can fix this.

Thanks
Attached Images
File Type: png density_poly.PNG (90.8 KB, 133 views)
File Type: jpg density_excel.jpg (61.1 KB, 83 views)
anon_l is offline   Reply With Quote

Old   November 2, 2016, 12:26
Default
  #2
New Member
 
Kevin
Join Date: Oct 2012
Posts: 29
Rep Power: 13
kirrer is on a distinguished road
I'm not sure you're taking the best approach to simulate super critical fluid, though I don't have the answer how to do it. But, I will share my experience in Excel. Whenever doing any curve fit, ensure that your coefficients don't fall into the Coefficient Round Off Error. I just made that term up, but if your X axis values are large, the coefficients like in your plot are shown rounded off to 1 significant figure with a rather large exponent - like 3E-12 instead of 2.875e-12. Depending on the polynomial order, that rounding might be OK but usually it is not. In your case, you get extreme negative values which make no sense. To make more sense of the error, try to plot the data in Excel (one column is temp, the other has the equation from your fit curve programmed in). You'll likely see similar behavior for the super critical part.

I believe CCM+ has other models which would better handle density in the super critical state than the polynomial function of temperature; I'll let others chime in on that (or check the manual / check with your support engineer). But in general, I would avoid using a 6th order (or even more than 3rd order) polynomial due to the unexpected behavior you've seen, as well as the inherent waviness you show in your 2nd image for the super critical part. Your 6th order function doesn't even follow the given data, so I would imagine it would create some simulation errors, even if you could get it to load in CCM+.
kirrer is offline   Reply With Quote

Old   November 4, 2016, 09:08
Default
  #3
Disabled
 
Join Date: Jun 2016
Posts: 13
Rep Power: 9
anon_l is on a distinguished road
Hi Kevin @kirrer ,
Thank you very much for your suggestions . I tried making the polynomials to 2nd degree and now my simulation doesnt give any errors .
The only problem that I am now left with is , that my temperature doesnt converge and my residuals show some weird oscillating behaviour , which I am not sure if it's correct ?
anon_l is offline   Reply With Quote

Old   November 4, 2016, 12:53
Default
  #4
New Member
 
Kevin
Join Date: Oct 2012
Posts: 29
Rep Power: 13
kirrer is on a distinguished road
I'm not familiar with super critical fluid simulation, so I can't give you pointers there. But, you would definitely want to provide more information for anyone that can help. For example, what are you trying to simulate? (steady flow, transient motion, turbulent mixing, etc - show a picture of possible). Give some idea of the boundary conditions. Explain the oscillating behavior - at some point, all residuals oscillate, but depending on the value of the oscillations (or the oscillations of engineering quantities), it may or may not be an issue.

There are some real gas models which are more applicable to what you're studying, though they are significantly more in-depth and would require a much greater understanding of the physics and the default model settings to produce an accurate answer - check the documentation for Real Gas models.
kirrer is offline   Reply With Quote

Old   November 6, 2016, 09:07
Default
  #5
Disabled
 
Join Date: Jun 2016
Posts: 13
Rep Power: 9
anon_l is on a distinguished road
Thanks again @kirrer kevin ,

I am trying to simulate supercritical water , flowing through a simple tube geometry .
The conditions are -
1)inlet h20 temp = 35.4 degree C , outlet temp = 356 degree C
2)mass flow= 587.6 gm/m^2-s
3) heat power = heat flux at inner surface of tube = 0.623 MW/m^2
4)I also use heat flux at the outer wall with a little higher value than the inner wall of the tube
5)pressure = 25 MPA
6)K- epsilon turbulence
7)steady

I have attached some pictures of my model, mesh and residuals for your reference .

Thank you very much
Attached Images
File Type: png volume mesh.PNG (162.8 KB, 34 views)
File Type: jpg residuals - 5.17.jpg (82.3 KB, 40 views)
File Type: png fluid physics.PNG (82.8 KB, 35 views)
File Type: png solid physics.PNG (25.2 KB, 33 views)
anon_l is offline   Reply With Quote

Old   November 7, 2016, 12:27
Default
  #6
New Member
 
Kevin
Join Date: Oct 2012
Posts: 29
Rep Power: 13
kirrer is on a distinguished road
If you are specifying heat flux at the wall (inner surface) of the tube, why do you need the solid model of the tube at all? Also, if you specify heat flux at the ID of the tube, then also specifying it at the OD could be numerically unstable. I recommend you simulate the interface as an interface, and only apply the heat flux at the outside of the tube. As for the physics models themselves, you're venturing into territory where the default values of H2O vapor likely don't apply (viscosity, specific heat, conductivity), and whatever answer you are looking for (pressure drop, heat transfer, temperature, etc) will change depending on those values. I don't have further advice, except to carefully specify the properties which would affect your answer and to reconsider using real gas models or talking with your support specialist. Of course, others on the board may have better advice than I, so you can wait for a response there as well.
kirrer is offline   Reply With Quote

Old   November 23, 2016, 16:09
Default
  #7
Member
 
Tanvir
Join Date: Nov 2016
Posts: 45
Rep Power: 9
wassli is on a distinguished road
Piecewise polynomials can be fitted because i am also doing work on supercritical freon. you just have to increase the precision of coefficients of polynomials.
1.png

2.png

3.jpg

4.jpg
arvindpj and whhjken1 like this.
wassli is offline   Reply With Quote

Old   November 23, 2016, 18:31
Default
  #8
Disabled
 
Join Date: Jun 2016
Posts: 13
Rep Power: 9
anon_l is on a distinguished road
@wassli , thanks very much for sharing this , my work with star ccm is almost done now .
But, I will keep your suggestion in mind if I work again with this software in the future .
Thanks
wassli likes this.
anon_l is offline   Reply With Quote

Old   December 6, 2019, 10:23
Unhappy How?
  #9
New Member
 
Stepan
Join Date: Dec 2019
Posts: 4
Rep Power: 6
NeedHelpPls is on a distinguished road
Excuse me, I just started to learn STAR CCM+, can anybody explain me how to enter polinomial density? I need to enter this polynom: y =-0,0000325783*x3-0,0000933926*x2-1,2194573442*x+872,4591125572.

Thanks!
NeedHelpPls is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 04:38
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 06:34.