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

Source term addition through fvOptions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 27, 2016, 21:40
Default Source term addition through fvOptions
  #1
Member
 
DongHo
Join Date: Jul 2013
Posts: 51
Rep Power: 12
eddykendo is on a distinguished road
Hi Foamers

I have a question about fvOPtions.
Actually I add a source term trough fvOptions to pisoFoam (V2.3).
The source term will be added after a momentum predictor procedure as below.

U = HbyA - rAU*fvc::grad(p) + rAU*fvOptions(U);

However, when this source term is added, the following error comes up.
pisoVC2Foam is a new developed solver for the consideration of Vorticity Confinement Method.
I will appreciate it if you can give me comments to resolve this problem.

Thanks

pisoVC2Foam.C: In function ‘int main(int, char**)’:
pisoVC2Foam.C:211:64: error: no match for ‘operator=’ in ‘U = Foam:perator+(const Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >&, const Foam::tmp<Foam::fvMatrix<Type> >&) [with Type = Foam::Vector<double>]((*(const Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > >*)(& Foam:perator*(const Foam:imensionedField<double, Foam::volMesh>&, const Foam::tmp<Foam::fvMatrix<Type> >&) [with Type = Foam::Vector<double>]((*(const Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > >*)(& Foam::fv:ptionList:perator()(Foam::GeometricFi eld<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::Vector<double>]((* & U))))))))’
pisoVC2Foam.C:211:64: note: candidates are:
/opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:1080:6: note: void Foam::GeometricField<Type, PatchField, GeoMesh>:perator=(const Foam::GeometricField<Type, PatchField, GeoMesh>&) [with Type = Foam::Vector<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]
/opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:1080:6: note: no known conversion for argument 1 from ‘Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > >’ to ‘const Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&’
/opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:1105:6: note: void Foam::GeometricField<Type, PatchField, GeoMesh>:perator=(const Foam::tmp<Foam::GeometricField<Type, PatchField, GeoMesh> >&) [with Type = Foam::Vector<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]
/opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:1105:6: note: no known conversion for argument 1 from ‘Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > >’ to ‘const Foam::tmp<Foam::GeometricField<Foam::Vector<double >, Foam::fvPatchField, Foam::volMesh> >&’
/opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:1141:6: note: void Foam::GeometricField<Type, PatchField, GeoMesh>:perator=(const Foam::dimensioned<Form>&) [with Type = Foam::Vector<double>, PatchField = Foam::fvPatchField, GeoMesh = Foam::volMesh]
/opt/openfoam230/src/OpenFOAM/lnInclude/GeometricField.C:1141:6: note: no known conversion for argument 1 from ‘Foam::tmp<Foam::fvMatrix<Foam::Vector<double> > >’ to ‘const Foam::dimensioned<Foam::Vector<double> >&’
/opt/openfoam230/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable]
eddykendo 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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 14:30
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 17:25
[swak4Foam] Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Community Contributions 27 April 16, 2014 15:14
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 12:41
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 15:31.