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

OpenFOAM141dev A new implementation of dynamicKistlerGammaContactAngle

Register Blogs Community New Posts Updated Threads Search

Like Tree22Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2016, 16:45
Default OpenFOAM dynamicKistlerGammaContactAngle
  #21
Member
 
Anastasios
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ageorg is on a distinguished road
Dear Kmou

I did it for version 2.2.1 and i get the following error:

dynamicKistlerAlphaContactAngleFvPatchScalarField. C:167:61: error: no matching function for call to ‘Foam::fvPatch::lookupPatchField(const Foam::word&) const’
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:167:61: note: candidate is:
/opt/openfoam221/src/finiteVolume/lnInclude/fvPatch.H:259:60: note: template<class GeometricField, class Type> const typename GeometricField::PatchFieldType& Foam::fvPatch::lookupPatchField(const Foam::word&, const GeometricField*, const Type*) const
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:170:64: error: no matching function for call to ‘Foam::fvPatch::lookupPatchField(const Foam::word&) const’
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:170:64: note: candidate is:
/opt/openfoam221/src/finiteVolume/lnInclude/fvPatch.H:259:60: note: template<class GeometricField, class Type> const typename GeometricField::PatchFieldType& Foam::fvPatch::lookupPatchField(const Foam::word&, const GeometricField*, const Type*) const
make: *** [Make/linux64GccDPOpt/dynamicKistlerAlphaContactAngleFvPatchScalarField. o] Error 1

The error points to the following lines of the dynamicKistlerAlphaContactAngle.C file:

const fvPatchField<scalar>& mup =
patch().lookupPatchField<volScalarField, scalar>(muName_); ////HERE

const fvPatchField<scalar>& sigmap =
patch().lookupPatchField<volScalarField, scalar>(sigmaName_); ////HERE

could you please advise me what could be wrong?

Thanks in advance

Ageorg
ageorg is offline   Reply With Quote

Old   March 24, 2016, 16:53
Default OpenFOAM dynamicKistlerGammaContactAngle
  #22
Member
 
Anastasios
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ageorg is on a distinguished road
Dear Kmou

I did the translation to v. 2.2.1 and after compilation I get the following errors:

alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C: In member function ‘virtual Foam::tmp<Foam::Field<double> > Foam::dynamicKistlerAlphaContactAngleFvPatchScalar Field::theta(const fvPatchVectorField&, const fvsPatchVectorField&) const’:
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:167:61: error: no matching function for call to ‘Foam::fvPatch::lookupPatchField(const Foam::word&) const’
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:167:61: note: candidate is:
/opt/openfoam221/src/finiteVolume/lnInclude/fvPatch.H:259:60: note: template<class GeometricField, class Type> const typename GeometricField::PatchFieldType& Foam::fvPatch::lookupPatchField(const Foam::word&, const GeometricField*, const Type*) const
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:170:64: error: no matching function for call to ‘Foam::fvPatch::lookupPatchField(const Foam::word&) const’
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:170:64: note: candidate is:
/opt/openfoam221/src/finiteVolume/lnInclude/fvPatch.H:259:60: note: template<class GeometricField, class Type> const typename GeometricField::PatchFieldType& Foam::fvPatch::lookupPatchField(const Foam::word&, const GeometricField*, const Type*) const
make: *** [Make/linux64GccDPOpt/dynamicKistlerAlphaContactAngleFvPatchScalarField. o] Error 1


The error messages point to the following lines in the dynamicKistlerAlphaContactAngleFvPatchScalarField. C file:

const fvPatchField<scalar>& mup =
patch().lookupPatchField<volScalarField, scalar>(muName_);

const fvPatchField<scalar>& sigmap =
patch().lookupPatchField<volScalarField, scalar>(sigmaName_);

I would appreciate any help if you have encountered this error before in your case

Thank you very much in advance,

Ageorg
ageorg is offline   Reply With Quote

Old   March 24, 2016, 17:02
Default
  #23
Member
 
Anastasios
Join Date: Mar 2009
Posts: 34
Rep Power: 17
ageorg is on a distinguished road
I did the same in OpenFOAM 2.2.1 and i get the following compilation error :

alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C: In member function ‘virtual Foam::tmp<Foam::Field<double> > Foam::dynamicKistlerAlphaContactAngleFvPatchScalar Field::theta(const fvPatchVectorField&, const fvsPatchVectorField&) const’:
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:167:61: error: no matching function for call to ‘Foam::fvPatch::lookupPatchField(const Foam::word&) const’
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:167:61: note: candidate is:
/opt/openfoam221/src/finiteVolume/lnInclude/fvPatch.H:259:60: note: template<class GeometricField, class Type> const typename GeometricField::PatchFieldType& Foam::fvPatch::lookupPatchField(const Foam::word&, const GeometricField*, const Type*) const
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:170:64: error: no matching function for call to ‘Foam::fvPatch::lookupPatchField(const Foam::word&) const’
alphaContactAngle/dynamicKistlerAlphaContactAngle/dynamicKistlerAlphaContactAngleFvPatchScalarField. C:170:64: note: candidate is:
/opt/openfoam221/src/finiteVolume/lnInclude/fvPatch.H:259:60: note: template<class GeometricField, class Type> const typename GeometricField::PatchFieldType& Foam::fvPatch::lookupPatchField(const Foam::word&, const GeometricField*, const Type*) const
make: *** [Make/linux64GccDPOpt/dynamicKistlerAlphaContactAngleFvPatchScalarField. o] Error 1

The error points in the following lines of code:


const fvPatchField<scalar>& mup =
patch().lookupPatchField<volScalarField, scalar>(muName_);

const fvPatchField<scalar>& sigmap =
patch().lookupPatchField<volScalarField, scalar>(sigmaName_);


Any help is appreciated

Thank you in Advance
ageorg is offline   Reply With Quote

Old   March 30, 2016, 20:57
Default Quick fix
  #24
Member
 
Mahmoud Aboukhedr
Join Date: Feb 2014
Location: London
Posts: 40
Rep Power: 12
Mahmoud_aboukhedr is on a distinguished road
Hello,

Am posting my partial fix again in case its not clear,

You can try removing this 4 lines

Code:
   
 const fvPatchField<scalar>& mup =
    patch().lookupPatchField<volScalarField, scalar>(muName_);

    const fvPatchField<scalar>& sigmap =
    patch().lookupPatchField<volScalarField, scalar>(sigmaName_);
And instead you add

Code:
const fvMesh& mesh = patch().boundaryMesh().mesh();
const scalarField& mup = mesh.lookupObject<scalarField>("muName_");
const scalarField& sigmap = mesh.lookupObject<scalarField>("sigmaName_");
my understanding is mu and sigma is scalar, so maybe you dont need volScalarFeild for the constant. so it should work fine unless I'm missed something.
It compiles fine with 2.3x, so i will say it should be fine with 2.2.1
Zhiheng Wang likes this.
Mahmoud_aboukhedr is offline   Reply With Quote

Old   July 21, 2018, 02:22
Default
  #25
New Member
 
Rajesh Singh
Join Date: Jun 2010
Posts: 15
Rep Power: 16
rsingh7 is on a distinguished road
Hi,



I was able to compile the code and libsrary created in the foam_user_appbin. I also added the following line in the controldict:


libs
(
"libDynamicKistlerContactAngle.so"
);



but while initializing the solution, I got following errors.


--> FOAM Warning :
From function dlOpen(const fileName&, const bool)
in file POSIX.C at line 1179
dlopen error : /people/sing956/OpenFOAM/sing956-2.4.0/platforms/linux64GccDPOpt/lib/libDynamicKistlerContactAngle.so: undefined symbol: _ZN4Foam49dynamicKistlerAlphaContactAngleFvPatchSc alarField6theta0E
--> FOAM Warning :
From function dlLibraryTable:pen(const fileName&, const bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libDynamicKistlerContactAngle.so"


Help for resolving this issue would be appreciated. Thanks in advance



Thanks
rsingh7 is offline   Reply With Quote

Old   August 15, 2018, 15:56
Default
  #26
New Member
 
Adi
Join Date: Apr 2018
Posts: 2
Rep Power: 0
aditya95 is on a distinguished road
has anyone installed kistler contact angle in openfoam 5?
joshmccraney likes this.
aditya95 is offline   Reply With Quote

Old   June 10, 2021, 05:08
Default
  #27
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by eberberovic View Post
Sorry, the files were too large for upload.
Here is the interFoam solver with only the part containing the dynamicKistlerGammaContactAngle class. It should be put into transportModels/interfaceProperties/gammaContactAngle/dynamicKistlerGammaContactAngle

interFoamKistler.tgz
damBreak_thetaA_115.tgz


Dear Edin

Thanks for sharing your code.

This is a solver, isn't it? How can I have it as a boundary condition for using as a dynamic CA for other solvers?

You mentioned that "It should be put into transportModels/interfaceProperties/gammaContactAngle/dynamicKistlerGammaContactAngle", If it is a solver, why should be placed in that address? It seems that must be in application/solver.

thank you!
alimea 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
Installing OpenFoam141dev vtk errors cvv OpenFOAM Installation 0 February 11, 2009 03:54
SpaceVaryingGammaContactAngle in OpenFOAM141dev asaha OpenFOAM Running, Solving & CFD 0 January 23, 2009 11:16
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 16:49
Sample utility problem in OpenFOAM141dev 7islands OpenFOAM Bugs 1 January 4, 2008 09:34
CoupledFvScalarMatrix in OpenFOAM141dev oleg_weinstein OpenFOAM Installation 6 December 13, 2007 14:16


All times are GMT -4. The time now is 12:50.