CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Problem in compiling a solver made for a different version (v2.0 ->v4.1)

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2017, 06:20
Default Problem in compiling a solver made for a different version (v2.0 ->v4.1)
New Member
Join Date: Mar 2017
Posts: 3
Rep Power: 9
JLS is on a distinguished road
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:

- (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
JLS is offline   Reply With Quote

Old   May 8, 2017, 12:45
New Member
Join Date: Mar 2017
Posts: 3
Rep Power: 9
JLS is on a distinguished road
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.
JLS is offline   Reply With Quote

Old   July 9, 2019, 14:03
New Member
Akhalesh sharma
Join Date: Apr 2019
Posts: 2
Rep Power: 0
Akhalesh123 is on a distinguished road
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.
Akhalesh123 is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Can you help me with a problem in ansys static structural solver? sourabh.porwal Structural Mechanics 0 March 27, 2016 17:07
fluent divergence for no reason sufjanst FLUENT 2 March 23, 2016 16:08
solver stop problem in Lagrangian Particle Tracking sakurabogoda CFX 3 October 5, 2012 06:09
Problem with implicit unsteady solver CCMuser STAR-CCM+ 2 March 3, 2010 11:20
Coupled solver energy equation problem lucioantonio FLUENT 0 April 3, 2009 10:21

All times are GMT -4. The time now is 18:39.