CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

how to use different scheme in fvc::interpolate(TA)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By NiklasW

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2021, 22:44
Default how to use different scheme in fvc::interpolate(TA)
  #1
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
hello:
I want to set the interpolation scheme bu the function
fvc::interpolate(TA, "upwind")
fvc::interpolate(TA, "linear")
but it seems the scheme name in the " " has no effects on the implementation. I changed the scheme name to an arbitray word, it still can run.
fvc::interpolate(TA, "upwindasdfasdf")
Could ou please give me some suggestions.
ztdep is offline   Reply With Quote

Old   June 13, 2021, 23:44
Default Investigate using debug switches
  #2
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8
Rvadrabade is on a distinguished road
Hi,

Probably you can investigate by switching on few debug switches. foamInstallationDir/etc/controlDict lists all relevant switches which can be toggled as per requirement to get more information while running application. Find surfaceInterpolation keyword and set it to 1 in above controlDict or copy locally to case folder.

It should give more clarity than nothing.

Thanks
Rvadrabade is offline   Reply With Quote

Old   June 13, 2021, 23:46
Default
  #3
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 427
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Quote:
Originally Posted by Rvadrabade View Post
Hi,

Probably you can investigate by switching on few debug switches. foamInstallationDir/etc/controlDict lists all relevant switches which can be toggled as per requirement to get more information while running application. Find surfaceInterpolation keyword and set it to 1 in above controlDict or copy locally to case folder.

It should give more clarity than nothing.

Thanks
Thanks, not in the controlDict, i set it in the source file.
ztdep is offline   Reply With Quote

Old   June 14, 2021, 00:24
Default How to use debug switches within application?
  #4
Member
 
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8
Rvadrabade is on a distinguished road
Hi,

Very nice approach. However, could you let me know how can debug switches be toggled within application without using controlDict?

Also, I recommend to have practice of share the solution to asked question, whenever you find the answer. It will help yourself as well as community.

Thanks
Rvadrabade is offline   Reply With Quote

Old   June 14, 2021, 10:12
Default
  #5
New Member
 
Join Date: May 2019
Posts: 16
Rep Power: 6
NiklasW is on a distinguished road
Quote:
Originally Posted by ztdep View Post
hello:
I want to set the interpolation scheme bu the function
fvc::interpolate(TA, "upwind")
fvc::interpolate(TA, "linear")
but it seems the scheme name in the " " has no effects on the implementation. I changed the scheme name to an arbitray word, it still can run.
fvc::interpolate(TA, "upwindasdfasdf")
Could ou please give me some suggestions.

Hello,
as far as i remember the word in " " is just a keyword, not a scheme name. You need to specify an interpolation scheme for this keyword in fvSchemes.

For example:
Code:
interpolationSchemes
{
    [...]

    upwindasdfasdf    upwind;
}
Otherwise the default interpolation scheme will be used.
Rvadrabade likes this.
NiklasW 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
how to understand high resolution scheme and high order scheme iilw1314 Main CFD Forum 7 April 12, 2022 12:29
Error: Out of scheme heap space SSG_NJ FLUENT 2 July 24, 2021 06:31
Crank Nicolson scheme implemented wrong? rajibroy OpenFOAM Programming & Development 10 May 5, 2020 09:57
can you tell me best gradient, pressure & momentum order selection in fluent sanjiiv FLUENT 6 February 14, 2020 06:07
2nd order upwind scheme (Fluent and CFX) Far FLUENT 0 May 22, 2011 01:50


All times are GMT -4. The time now is 11:32.