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

Problem with fvm::laplacian(A,sqrt(k))

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2020, 23:29
Default Problem with fvm::laplacian(A,sqrt(k))
  #1
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 401
Rep Power: 19
quarkz is on a distinguished road
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)
to

Code:
fvm::laplacian(A/sqrt(k),sqrt(k))
where the full eqn is:

Code:
tmp<fvScalarMatrix> kEqn
    (
        fvm::ddt(alpha, rho, k)
     ...
      - fvm::laplacian(A/sqrt(k),sqrt(k))
...
The errors I got are:

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))
Then there is no problem.

But if I want it to be implicit, is there any way?

Thanks in advance.
quarkz is offline   Reply With Quote

Old   May 3, 2020, 16:59
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
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?
HPE is offline   Reply With Quote

Old   May 3, 2020, 21:04
Default
  #3
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 401
Rep Power: 19
quarkz is on a distinguished road
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!
quarkz 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
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


All times are GMT -4. The time now is 04:37.