|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
karar
Join Date: Feb 2013
Posts: 13
Rep Power: 13 ![]() |
Dear All,
I I would like to add the Clark's cross term to the Reynolds stress. its expression is as follows (u_i*\laplacian(u_j)+u_j*\laplacian(u_i)). I added it to my model as follows: Code:
volSymmTensorField Clark(U()*(Foam::fvc::laplacian(U())) + (Foam::fvc::laplacian(U()))*U()); but I get the following error when compiling . I would be glad if you help where I did wrong. Code:
error: no matching function for call to ‘Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::tmp<Foam::GeometricField<Foam::Tensor<double>, Foam::fvPatchField, Foam::volMesh> >)’ CinlarStress/CinlarStress.C:162:91: note: candidates are: /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:606:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::GeometricField<Type, PatchField, GeoMesh>&, const wordList&, const wordList&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::wordList = Foam::List<Foam::word>] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:606:1: note: candidate expects 4 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:571:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::GeometricField<Type, PatchField, GeoMesh>&, const Foam::word&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:571:1: note: candidate expects 3 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:541:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::word&, const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:541:1: note: candidate expects 2 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:508:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::word&, const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:508:1: note: candidate expects 2 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:476:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:476:1: note: candidate expects 2 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:445:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:445:1: note: no known conversion for argument 1 from ‘Foam::tmp<Foam::GeometricField<Foam::Tensor<double>, Foam::fvPatchField, Foam::volMesh> >’ to ‘const Foam::tmp<Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh> >&’ /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:413:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:413:1: note: no known conversion for argument 1 from ‘Foam::tmp<Foam::GeometricField<Foam::Tensor<double>, Foam::fvPatchField, Foam::volMesh> >’ to ‘const Foam::GeometricField<Foam::SymmTensor<double>, Foam::fvPatchField, Foam::volMesh>&’ /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:372:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dictionary&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:372:1: note: candidate expects 3 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:332:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:332:1: note: candidate expects 2 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:305:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensionSet&, const Foam::Field<TypeR>&, const Foam::PtrList<PatchField<Type> >&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:305:1: note: candidate expects 5 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:275:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensioned<Form>&, const wordList&, const wordList&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh, Foam::wordList = Foam::List<Foam::word>] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:275:1: note: candidate expects 5 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:246:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensioned<Form>&, const Foam::word&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:246:1: note: candidate expects 4 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:218:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensionSet&, const wordList&, const wordList&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh, Foam::wordList = Foam::List<Foam::word>] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:218:1: note: candidate expects 5 arguments, 1 provided /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:188:1: note: Foam::GeometricField<Type, PatchField, GeoMesh>::GeometricField(const Foam::IOobject&, const Mesh&, const Foam::dimensionSet&, const Foam::word&) [with Type = Foam::SymmTensor<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh, Foam::GeometricField<Type, PatchField, GeoMesh>::Mesh = Foam::fvMesh] /opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:188:1: note: candidate expects 4 arguments, 1 provided make: *** [Make/linux64GccDPOpt/CinlarStress.o] Error 1 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
karar
Join Date: Feb 2013
Posts: 13
Rep Power: 13 ![]() |
I solved by writing in two parts as follows
Code:
volTensorField Clark1(U()*(fvc::laplacian(U()))); volTensorField Clark2(fvc::laplacian(U())*U()); Code:
symm(Clark1+Clark2) |
|
![]() |
![]() |
![]() |
![]() |
#3 | ||
New Member
Nick
Join Date: Dec 2017
Location: UK
Posts: 7
Rep Power: 9 ![]() |
Hi all,
I'm also having a similar issue... namely I get the following error: Quote:
Quote:
thanks! |
|||
![]() |
![]() |
![]() |
![]() |
#4 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
As it is stated:
Code:
injectorSolidParticle* ptr= new injectorSolidParticle(*this,pos,cellI,d,vel);
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field | lakeat | OpenFOAM Community Contributions | 58 | December 23, 2021 03:36 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 07:27 |