|
[Sponsors] | |||||
fixedFluxPressure BC: updateCoeffs(const scalarField& snGradp) MUST be called ... |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Mohammad Khojastehmehr
Join Date: Jul 2020
Posts: 20
Rep Power: 7 ![]() |
Hey everybody!
I want to simulate 1D steady state flow in porous media using Darcy law. The equations are as follows: where U is the velocity, p is pressure. is the viscosity and K is the permeability.As the inlet velocity is considered a constant in the case of my problem, I decided to use fixedFluxPressure BC. So, the the initial and boundary conditions would be: p: Code:
internalField uniform 0;
boundaryField
{
inlet
{
type fixedFluxPressure;
}
outlet
{
type fixedValue;
value uniform 0;
}
frontAndBackAndTopAndBottom
{
type empty;
}
}
Code:
boundaryField
{
inlet
{
type fixedValue;
value uniform (1 0 0);
}
outlet
{
type zeroGradient
}
frontAndBackAndTopAndBottom
{
type empty;
}
}
Code:
fvScalarMatrix pEqn
(
fvm::laplacian(k/mu,p)
);
pEqn.solve();
U=-k/mu*fvc::grad(p);
Code:
--> FOAM FATAL ERROR:
updateCoeffs(const scalarField& snGradp) MUST be called before updateCoeffs() or evaluate() to set the boundary gradient.
From function virtual void Foam::fixedFluxPressureFvPatchScalarField::updateCoeffs()
in file fields/fvPatchFields/derived/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C at line 157.
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Kennedy Murithi Micheni
Join Date: Apr 2020
Posts: 6
Rep Power: 7 ![]() |
Quote:
|
|
|
|
|
|
![]() |
| Tags |
| boundary condition, darcy's law, fixedfluxpressure |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| updateCoeffs(const scalarField& snGradp) MUST be called before updateCoeffs() | jinyaqing | OpenFOAM Running, Solving & CFD | 7 | March 14, 2024 12:57 |
| SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 05:37 |
| fixedFluxPressure with PisoFoam | me.ouda | OpenFOAM Running, Solving & CFD | 1 | October 27, 2015 06:30 |
| terminate called after throwing an instance of 'int' | b614910 | SU2 | 10 | July 27, 2014 23:16 |
| reconstructParMesh not working with an axisymetric case | francesco | OpenFOAM Bugs | 4 | May 8, 2009 06:49 |