|
[Sponsors] |
May 2, 2020, 23:29 |
Problem with fvm::laplacian(A,sqrt(k))
|
#1 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 401
Rep Power: 19 |
Hi,
I've trying to modify the Turbulent kinetic energy equation. Basically, for some reasons, I need to modify from e.g.: Code:
fvm::laplacian(A,k) Code:
fvm::laplacian(A/sqrt(k),sqrt(k)) Code:
tmp<fvScalarMatrix> kEqn ( fvm::ddt(alpha, rho, k) ... - fvm::laplacian(A/sqrt(k),sqrt(k)) ... error: no matching function for call to ‘laplacian(Foam::tmp<Foam::GeometricField<dou ble, Foam::fvPatchField, Foam::volMesh> >, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >)’ /opt/OpenFOAM/OpenFOAM-v1912/src/finiteVolume/lnInclude/fvmLaplacian.C:47:1: note: template argument deduction/substitution failed: In file included from ../turbulenceModels/lnInclude/kOmegaSSTF.H:194:0, If I change to explicit: Code:
fvc::laplacian(A/sqrt(k),sqrt(k)) But if I want it to be implicit, is there any way? Thanks in advance. |
|
May 3, 2020, 16:59 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
to use fvm for sqrt(k), the governing equation should br sqrt(k) rather than k.
Is this a source term which can be put on the right hand side?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
May 3, 2020, 21:04 |
|
#3 |
Senior Member
TWB
Join Date: Mar 2009
Posts: 401
Rep Power: 19 |
Sorry, I think I made a mistake. I am solving for k, so I'm actually computing fvc::laplacian(A/sqrt(k),sqrt(k)) on the RHS as explicit.
Thanks anyway! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 04:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 05:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 06:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 19:13 |