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

Trouble with fvSchemes - Help needed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2019, 21:50
Default Trouble with fvSchemes - Help needed
  #1
New Member
 
Andrew Lindsay
Join Date: Mar 2009
Location: Perth, Western Australia
Posts: 24
Rep Power: 17
andrewlindsay is on a distinguished road
I have the following error when I try to run my case file
Code:
--> FOAM FATAL IO ERROR:
keyword interpolate((thermo:rho*Cp)) is undefined in dictionary "/mnt/c/Users/andre/OneDrive/Documents/openFOAM/FieldJoint/system/water0/fvSchemes.interpolationSchemes"

file: /mnt/c/Users/andre/OneDrive/Documents/openFOAM/FieldJoint/system/water0/fvSchemes.interpolationSchemes

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 573.

FOAM exiting
The corresponding fvSchemes looks like this.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5                                     |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default         steadyState;
}

gradSchemes
{
    default         Gauss linear;
}

divSchemes
{
}

laplacianSchemes
{
    default         Gauss linear corrected;
}

interpolationSchemes
{
}

snGradSchemes
{
}


// ************************************************************************* //
What should it look like? Any assistance would be greatly appreciated.

Best regards

Andrew
andrewlindsay is offline   Reply With Quote

Old   December 8, 2019, 22:26
Default
  #2
New Member
 
Andrew Lindsay
Join Date: Mar 2009
Location: Perth, Western Australia
Posts: 24
Rep Power: 17
andrewlindsay is on a distinguished road
OK - I've changed out the fvSchemes file, but now I have another error.

Code:
PIMPLE: Iteration 1

Solving for solid region water0


--> FOAM FATAL ERROR:
cannot be called for a calculatedFvPatchField
    on patch water0_to_water1 of field h in file "/mnt/c/Users/andre/OneDrive/Documents/openFOAM/FieldJoint/0/water0/h"
    You are probably trying to solve for a field with a default boundary condition.

    From function Foam::tmp<Foam::Field<Type> > Foam::calculatedFvPatchField<Type>::gradientInternalCoeffs() const [with Type = double]
    in file fields/fvPatchFields/basic/calculated/calculatedFvPatchField.C at line 188.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::calculatedFvPatchField<double>::gradientInternalCoeffs() const at ??:?
#3  Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacianUncorrected(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#4  Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacian(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#5  Foam::fv::laplacianScheme<double, double>::fvmLaplacian(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#6  Foam::tmp<Foam::fvMatrix<double> > Foam::fvm::laplacian<double, double>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::word const&) in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
#7  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
#8  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#9  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/chtMultiRegionFoam"
Aborted (core dumped)
Any suggestions on what to do to fix this?
andrewlindsay is offline   Reply With Quote

Old   December 9, 2019, 02:07
Default
  #3
Senior Member
 
Yogesh Bapat
Join Date: Oct 2010
Posts: 102
Rep Power: 15
ybapat is on a distinguished road
Please check boundary condition for h field. It has calculated type BC and h is being solved.
ybapat is offline   Reply With Quote

Old   December 9, 2019, 02:13
Default
  #4
New Member
 
Andrew Lindsay
Join Date: Mar 2009
Location: Perth, Western Australia
Posts: 24
Rep Power: 17
andrewlindsay is on a distinguished road
Where do I find this boundary condition, which file should it be in?
andrewlindsay 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
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 12:39
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
[OpenFOAM.org] OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit saturn_53 OpenFOAM Installation 13 February 1, 2015 04:17
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 11:51
compiling firefoam Farshad_Noravesh OpenFOAM 27 December 24, 2012 04:21


All times are GMT -4. The time now is 20:51.