|
[Sponsors] |
Error happens when 'scheme' and 'SCheme' are added in fvm::div() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 8, 2018, 11:15 |
Error happens when 'scheme' and 'CSheme' are added in fvm::div()
|
#1 |
New Member
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 10 |
Hello, everyone,
I am trying to simulate transport phenomena in two-phase flow and find a piece of source code for solving the advection-diffusion equation with the interface. For divergence part, it is written as: fvm::div(phi, C, scheme) - fvm::div(phiD, C, CScheme) After compiling the code, I got "error: ‘CScheme’ was not declared in this scope" and "error: 'scheme’ was not declared in this scope." Although I searched solution using google, no solution is found. Is there anyone knowing how to fix this error? Thanks a lot. Last edited by HectorLee; May 8, 2018 at 16:58. |
|
May 10, 2018, 21:45 |
|
#2 |
Senior Member
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18 |
The compilation error sounds pretty clear to me: the variables scheme and Cscheme you are using as arguments to construct your matrix from the function fvm::div() are not declared.
There are two ways for solving your problem: 1: you don't call the fonction with three arguments but only two (the third one is optional) Code:
fvm::div(phi, C) - fvm::div(phiD, C) 2: you declare scheme and CScheme before calling your functions: Code:
word scheme "div(phi,C)"; word CScheme "div(phiD,C)"; ... fvm::div(phi, C, scheme) - fvm::div(phiD, C, CScheme) Last edited by Cyp; May 11, 2018 at 08:00. |
|
May 15, 2018, 00:46 |
|
#3 |
New Member
Pei Li
Join Date: Nov 2015
Posts: 10
Rep Power: 10 |
Thank you very much for your help, Cyprien. Sorry for replying you late, because I was in travel these days. I will try both methods later.
|
|
|
|
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 |
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 |
Godunov scheme | Peter | Main CFD Forum | 6 | November 27, 2009 10:51 |
extrapolation in MUSCL scheme | Chandra | Main CFD Forum | 6 | February 14, 2007 11:21 |