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

Upwind Gradient Not Recognizing surfaceScalarField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2016, 13:15
Default Upwind Gradient Not Recognizing surfaceScalarField
  #1
New Member
 
Majid Haghshenas
Join Date: May 2015
Posts: 5
Rep Power: 11
MajidHagh is on a distinguished road
Hi all,
I'm trying to use first order upwind gradient that depends on a user defined surfaceScalarField for the upwinding direction. But I have problem where the solver does not recognize my user defined surfaceScalarField, "SSF", when I select the discretization scheme in the fvSchemes file. For instance, when I want to take gradient of some volScalarField, "psi", in my solver, I put

Code:
grad(psi) Gauss upwind SSF;
in fvSchemes.

Where, as I mentioned above, "SSF" is my user defined field. If its relevant, It was initialized using:

Code:
surfaceScalarField SSF
    (
        IOobject
        (
            "SSF",
            runTime.timeName(),
            mesh,
            IOobject::NO_READ,
            IOobject::NO_WRITE
        ),
         fvc::interpolate(alpha1)
    );
When I try to run the solver, it doesn't recognize or even see that "SSF" exists as a surfaceScalarField. I receive the following error at runtime:

Code:
 request for surfaceScalarField SSF from objectRegistry region0 failed
    available objects of type surfaceScalarField are

5
(
rhoPhi
ghf
phi
nVecf
nHatf
)
I want to use my SSF surfaceScalarField but I can not.
Anyone knows how to define the SSF that would be recognized in the fvSchemes?
MajidHagh is offline   Reply With Quote

Old   May 13, 2016, 10:43
Default Problem Solved
  #2
New Member
 
Majid Haghshenas
Join Date: May 2015
Posts: 5
Rep Power: 11
MajidHagh is on a distinguished road
Problem is solved.
MajidHagh is offline   Reply With Quote

Old   October 30, 2019, 11:58
Default What was the solution?
  #3
New Member
 
Arpit
Join Date: Nov 2015
Posts: 3
Rep Power: 10
foam is on a distinguished road
Hey, I'm running into the exact same issue. How did you fix it?
foam is offline   Reply With Quote

Reply

Tags
bug, error, upwind gradient

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 14:42
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 05:35
Implementation of 2nd order upwind scheme jaason OpenFOAM Running, Solving & CFD 4 February 6, 2015 17:40
2nd order upwind vs 2nd order upwind!!! Far Main CFD Forum 7 March 14, 2013 12:29
Second order upwind is not UPwind!!! Far CFX 9 May 31, 2011 08:21


All times are GMT -4. The time now is 07:03.