|
[Sponsors] |
Problem in compiling a solver made for a different version (v2.0 ->v4.1) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2017, 07:20 |
Problem in compiling a solver made for a different version (v2.0 ->v4.1)
|
#1 |
New Member
Jaime
Join Date: Mar 2017
Posts: 3
Rep Power: 9 |
Hi, I am new in the Forum and in OpenFOAM. I am working on an academic project and I need to compile a solver in version 4.3 that was originally made for version 2.0 (I am not sure about this, but it should be from version 2.0 to version 2.3).
After some debugging, I only have one error that I am not able to solve. This is de error message: pEqn.H:26:5: error: no matching function for call to ‘setSnGrad(const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary&, Foam::tmp<Foam::FieldField<Foam::fvsPatchField, double> >)’ ); ^ This is the code related to the error message: setSnGrad<fixedFluxPressureFvPatchScalarField> ( p_rgh.boundaryField(), ( phiHbyA.boundaryField() - (mesh.Sf().boundaryField() & U.boundaryField()) )/(mesh.magSf().boundaryField()*rAUf.boundaryField() ) ); Apologize me in advance if the way of posting is inappropriate, I carefully read the rules and I posted the way I understood I should. Thank you for your answers and plese be as clear as possible, I am really noob in OpenFOAM. Thank you |
|
May 8, 2017, 13:45 |
|
#2 |
New Member
Jaime
Join Date: Mar 2017
Posts: 3
Rep Power: 9 |
I already solved it. I will answer my own question in case somebody else is working on adapting a solver of an old version into a newer OpenFOAM version (at the time of this post the latest is 4.1)
It looks that after OpenFOAM 2.3 (or 2.4, I am not sure) to update the fixedFluxPressure BCs (and I guess it should be similar for other kinds of BCs) you change the code that I showed before for this simple line: constrainPressure(p_rgh, U, phiHbyA, rAUf); Hope it helps someone. |
|
July 9, 2019, 15:03 |
|
#3 |
New Member
Akhalesh sharma
Join Date: Apr 2019
Posts: 2
Rep Power: 0 |
Hello Sir
I am facing the same problem. I am using Open FOAM 5x but solver is of 3.01.Same error I am getting. Can you resolve my issue?Thanks in advance. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can you help me with a problem in ansys static structural solver? | sourabh.porwal | Structural Mechanics | 0 | March 27, 2016 18:07 |
fluent divergence for no reason | sufjanst | FLUENT | 2 | March 23, 2016 17:08 |
solver stop problem in Lagrangian Particle Tracking | sakurabogoda | CFX | 3 | October 5, 2012 07:09 |
Problem with implicit unsteady solver | CCMuser | STAR-CCM+ | 2 | March 3, 2010 12:20 |
Coupled solver energy equation problem | lucioantonio | FLUENT | 0 | April 3, 2009 11:21 |