# How to use both 1st and 2nd order schemes for the div(phi,U) term?

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

 July 27, 2016, 10:21 How to use both 1st and 2nd order schemes for the div(phi,U) term? #1 Member   Jack Join Date: Dec 2011 Posts: 89 Rep Power: 7 Hi guys, I would like to calculate the div(phi,U) term using both 1st order scheme (i.e., Gauss upwind) and 2nd order scheme (i.e., Gauss linear) in my simulation. I know that I can define separate fields such as phi_2nd and U_2nd, and phi_1st and U_1st, and then I can set the numerical schemes for these fields separately. But if I do it this way, the memory usage will be doubled. Is there a convenient way I can do it without defining new fields? Thank you guys in advance! Best regards, Jack

July 27, 2016, 16:30
#2
Member

Jack
Join Date: Dec 2011
Posts: 89
Rep Power: 7
Quote:
 Originally Posted by ripperjack Hi guys, I would like to calculate the div(phi,U) term using both 1st order scheme (i.e., Gauss upwind) and 2nd order scheme (i.e., Gauss linear) in my simulation. I know that I can define separate fields such as phi_2nd and U_2nd, and phi_1st and U_1st, and then I can set the numerical schemes for these fields separately. But if I do it this way, the memory usage will be doubled. Is there a convenient way I can do it without defining new fields? Thank you guys in advance! Best regards, Jack
Hi guys,

I am very close to getting this fixed. I can read and modify the fvScheme IOdictionary at run time. However, even I change the divscheme of div(phi,U) from Gauss linear to Gauss upwind, the results do not change... I think I need to call a function to let fvc::div know that I want to use the updated div scheme. Any ideas? Thanks!

Regards,
Jack

 Thread Tools 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 fireflies Main CFD Forum 2 September 18, 2014 08:07 AmirBaqa1987 ANSYS 1 March 19, 2014 05:39 ken FLUENT 8 March 14, 2013 04:43 ThinkQuick Main CFD Forum 3 September 11, 2012 05:16 Prateep Chatterjee FLUENT 0 January 19, 2003 01:31

All times are GMT -4. The time now is 02:35.

 Contact Us - CFD Online - Privacy Statement - Top