|
[Sponsors] |
Modifying pEqn: "cannot scale a matrix containing a faceFluxCorrection" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 30, 2019, 12:45 |
Modifying pEqn: "cannot scale a matrix containing a faceFluxCorrection"
|
#1 |
Member
Raunak Bardia
Join Date: Jan 2015
Posts: 32
Rep Power: 11 |
This post is related to the two-phase flow solver isoAdvector in OpenFoam v1706.
I am working to implement a new method to capture surface tension and hence, I am currently playing around with pEqn.H. Here is the pressure matrix I am trying to create. Code:
fvScalarMatrix p_rghEqn ( isLiquid * fvm::laplacian(rAULf, p_rgh) + (1 - isLiquid) * fvm::laplacian(rAUVf, p_rgh) == - isLiquid * fvc::laplacian(rAULf * DPField, isInterfaceOwnerLiquid) - (1 - isLiquid) * fvc::laplacian(rAUVf * DPField, isInterfaceOwnerLiquid) + isLiquid * fvc::laplacian(rAULf * DPField, isInterfaceOwnerVapor) + (1 - isLiquid) * fvc::laplacian(rAUVf * DPField, isInterfaceOwnerVapor) + fvc::div(phiHbyA) ); "isLiquid" is a volScalarField Code:
volScalarField isLiquid ( IOobject ( "isLiquid", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("zero",dimless,0) ); Code:
--> FOAM FATAL ERROR: cannot scale a matrix containing a faceFluxCorrection From function void Foam::fvMatrix<Type>::operator*=(const Internal&) [with Type = double; Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Internal = Foam::DimensionedField<double, Foam::volMesh>] in file /usr/local/openfoam/v1706/OpenFOAM-v1706/src/finiteVolume/lnInclude/fvMatrix.C at line 1242. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/usr/local/openfoam/v1706/OpenFOAM-v1706/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/usr/local/openfoam/v1706/OpenFOAM-v1706/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #2 Foam::Ostream& Foam::operator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) at /usr/local/openfoam/v1706/OpenFOAM-v1706/src/OpenFOAM/lnInclude/errorManip.H:85 #3 Foam::fvMatrix<double>::operator*=(Foam::DimensionedField<double, Foam::volMesh> const&) at /usr/local/openfoam/v1706/OpenFOAM-v1706/src/finiteVolume/lnInclude/fvMatrix.C:1242 #4 ? at /usr/local/openfoam/v1706/OpenFOAM-v1706/src/finiteVolume/lnInclude/fvMatrix.C:2247 #5 ? at ~/OpenFOAM/rbardia-v1706/applications/solvers/temperatureFoam/pEqn.H:50 #6 __libc_start_main in "/lib64/libc.so.6" #7 Foam::UOPstream::write(float) in "/home/rbardia/OpenFOAM/rbardia-v1706/platforms/linux64GccDPInt32Opt/bin/temperatureFoam" Aborted Code:
laplacianSchemes { default Gauss linear corrected; } Code:
fvScalarMatrix TEqn ( fvm::ddt(rhoCp ,T) - isLiquid * fvm::laplacian(kLEff, T) - (1 - isLiquid) * fvm::laplacian(kVEff, T) == isLiquid * fvc::laplacian(kLEff * DTField, isInterfaceOwnerLiquid) + (1 - isLiquid) * fvc::laplacian(kVEff * DTField, isInterfaceOwnerLiquid) - isLiquid * fvc::laplacian(kLEff * DTField, isInterfaceOwnerVapor) - (1 - isLiquid) * fvc::laplacian(kVEff * DTField, isInterfaceOwnerVapor) ); Help is much needed and greatly appreciated. Thanks. |
|
January 10, 2020, 14:32 |
cannot scale a matrix containing a faceFluxCorrection
|
#2 |
Member
Vivek
Join Date: Mar 2018
Location: India
Posts: 54
Rep Power: 8 |
Hi Raunak Bardia,
Did you find answer to your question? Because I have same problem with scalar transport equation. Any help would be appreciated. Thanks |
|
Tags |
fvm::laplacian, isoadvector, laplacian operator, peqn |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem simulating the temperature rise in a composite material (chtMultiRegionFoam) | Adam_K | OpenFOAM Running, Solving & CFD | 2 | March 27, 2019 07:51 |
How can I get the number of elements per row form the matrix? | klausb | OpenFOAM Programming & Development | 2 | December 30, 2018 16:27 |
How to find a good time scale strategy? | StefanG | CFX | 19 | June 8, 2012 09:41 |
Force can not converge | colopolo | CFX | 13 | October 4, 2011 23:03 |
OpenFOAM version 1.6 details | lakeat | OpenFOAM Running, Solving & CFD | 42 | August 26, 2009 22:47 |