CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Trouble with fvSchemes - Help needed (https://www.cfd-online.com/Forums/openfoam-solving/222772-trouble-fvschemes-help-needed.html)

andrewlindsay December 8, 2019 21:50

Trouble with fvSchemes - Help needed
 
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 December 8, 2019 22:26

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?

ybapat December 9, 2019 02:07

Please check boundary condition for h field. It has calculated type BC and h is being solved.

andrewlindsay December 9, 2019 02:13

Where do I find this boundary condition, which file should it be in?


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