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

How to call sigmaK()?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2019, 07:48
Default How to call sigmaK()?
  #1
New Member
 
Elisabeth Diehl
Join Date: Jun 2019
Posts: 8
Rep Power: 6
elsebaer is on a distinguished road
Hello everybody,


instead of using mixture.surfaceTensionForce() on the right side of UEqn.H, I want to calculate a slightly different term "by hand".
Therefore, I took the implementation of the surfaceTensionForce and replaced just the second addend:
Code:
solve
(
    UEqn

==
    fvc::reconstruct
    (
        (
            ...
          + fvc::interpolate(interfaceProperties::sigmaK()) * ...
            ....

        ) * mesh.magSf()

    )

);
It doesn't work, the following error occurs:
Quote:
error: cannot call member function 'Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >Foam::interfaceProperties::sigmaK() const' without object
Calling sigmaK() with mixture.sigmaK() or interface.sigmaK() does not work too. Do you have another idea?


Thank you!
elsebaer is offline   Reply With Quote

Old   November 29, 2019, 08:49
Default
  #2
New Member
 
Elisabeth Diehl
Join Date: Jun 2019
Posts: 8
Rep Power: 6
elsebaer is on a distinguished road
Ok, I found out that it works with fvc::interpolate(mixture.sigmaK()). No idea why it did not work 1000 times before
elsebaer 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
Any experts on FFTW? jinhua2015 Main CFD Forum 3 May 22, 2022 19:44
Compiling User Fortran with CFX 14.0 on Win64 Raijin Thunderkeg CFX 29 March 9, 2016 11:45
writing link between two CGNS files t.teschner Main CFD Forum 1 February 4, 2014 10:26
2D CFD code using SIMPLE algorithm bfan Main CFD Forum 3 June 22, 2002 22:01
Who's ok for an Open Source CFD project ? Viet Main CFD Forum 16 July 26, 1999 15:57


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