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

Port OF60->OF1812 problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2019, 13:36
Default Port OF60->OF1812 problem
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 250
Rep Power: 22
klausb will become famous soon enough
Hello,


I am trying to port an application from OF60->OF1812. I ran into a problem with the following compile error:


Code:
segregated/openFoamSolver/openFoamSolver.C:57:6:   from here requires
/home/klaus/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude/fvMatrixSolve.C:294:51: Error: no suitable call for function to call »Foam::fvMesh::solve(Foam::fvMatrix<Foam::SphericalTensor<double> >&, const Foam::dictionary&) const«
  294 |     return psi_.mesh().solve(*this, solverControls);
      |                                                   ^
Has someone a suggestion about how to provide this functionality in OF1812?


Klaus
klausb is offline   Reply With Quote

Old   December 17, 2019, 07:35
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by klausb View Post
Hello,


I am trying to port an application from OF60->OF1812. I ran into a problem with the following compile error:


Code:
segregated/openFoamSolver/openFoamSolver.C:57:6:   from here requires
/home/klaus/OpenFOAM/OpenFOAM-v1812/src/finiteVolume/lnInclude/fvMatrixSolve.C:294:51: Error: no suitable call for function to call »Foam::fvMesh::solve(Foam::fvMatrix<Foam::SphericalTensor<double> >&, const Foam::dictionary&) const«
  294 |     return psi_.mesh().solve(*this, solverControls);
      |                                                   ^
Has someone a suggestion about how to provide this functionality in OF1812?


Klaus

A quick grep for fvMesh::solve in the code base shows that there are specializations for the other types but not spherical. I guess not used very often and thus not really gone missing (until now).
Code:
src/finiteVolume/fvMesh/fvMesh.C:Foam::SolverPerformance<Foam::scalar> Foam::fvMesh::solve
src/finiteVolume/fvMesh/fvMesh.C:Foam::SolverPerformance<Foam::vector> Foam::fvMesh::solve
src/finiteVolume/fvMesh/fvMesh.C:Foam::SolverPerformance<Foam::symmTensor> Foam::fvMesh::solve
src/finiteVolume/fvMesh/fvMesh.C:Foam::SolverPerformance<Foam::tensor> Foam::fvMesh::solve
If you go one step further, you'll see that these are just forwarding wrappers
Code:
    // Redirect to fvMatrix solver
    return m.solveSegregatedOrCoupled(dict);
olesen is offline   Reply With Quote

Old   December 17, 2019, 07:39
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
https://develop.openfoam.com/Develop...am/issues/1526


- got lost with changes for overset
olesen 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
Is COMSOL Multi Physics is suitable to solve complex flow problem? steve lee COMSOL 8 January 5, 2023 02:31
Mesh& steptime independant: conduction-convection problem Fati1 Main CFD Forum 1 October 28, 2018 13:52
problem loading UDF library in parallel cluster Veera Gutti FLUENT 8 July 26, 2016 07:24
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 07:27.