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

Changes in OF 14 and compilation issues

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2007, 06:49
Default I'm having problems to recompi
  #1
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
I'm having problems to recompile the libraries I used on OpenFOAM 1.3 under OpenFOAM 1.4. In other words, noone compiles!

For example, a simple BC for a parabolic velocity profile gives the error:

make: *** No rule to make target `/home/alberto/OpenFOAM/OpenFOAM-1.4/src/OpenFOAM/lnInclude/lduCoupledInterface. H', needed by `parabolicVelocityFvPatchVectorField.dep'. Stop.

Is there a reference for the main changes required to port applications to OF 1.4?

Thanks in advance,
Alberto
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 3, 2007, 06:55
Default Why do you need a lduCoupledIn
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
Why do you need a lduCoupledInterface to make a velocity boundary condition? Anyway, I think it changed to lduInterface.
eugene is offline   Reply With Quote

Old   May 3, 2007, 08:05
Default Thanks Eugene, I don't need
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Thanks Eugene,

I don't need lduCoupledInterface. That's just the error message I obtain when I execute "wmake libso".
I'm just using the code for the parabolic velocity profile I took from the discussion board.

However I have recompiled OF from sources and it seems something went wrong and was causing the problem.

I reinstalled the binaries and now it works.

Regards,
A.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 3, 2007, 08:10
Default Hi Alberto! Have you done a
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Alberto!

Have you done a wclean before wmake? The old *.dep files won't work with 1.4 (at least that solved that problem for me, when I was porting stuff to 1.4.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 3, 2007, 08:18
Default Yes I did it Bernhard, now the
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Yes I did it Bernhard, now the problems is with the line:

const vectorField::subField c = patch().Cf();

which gives:

parabolicVelocityFvPatchVectorField.C:122: error: conversion from 'const Foam::Field<foam::vector<double> >' to non-scalar type 'Foam::SubField<foam::vector<double> >' requested
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 3, 2007, 08:22
Default Try const vectorField& c =
  #6
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Try

const vectorField& c = patch().Cf();

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 3, 2007, 08:33
Default Thanks Hrvoje! I wonder why
  #7
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Thanks Hrvoje!

I wonder why these small changes were done however. I'm porting two apps and some library to 1.4, but it's taking too much time.

I'm considering to stick with 1.3 actually. Was it really necessary to break backward compatibility?

Regards,
Alberto
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 4, 2007, 12:01
Default Hello! I get errors when I co
  #8
New Member
 
Aurelia Cure
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 18
Rep Power: 17
aurelia is on a distinguished road
Hello!
I get errors when I compile IcolagrangianFoam with OpenFoam 1.4.

/home/aurelia/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude/volPointInterpola tion.H: In constructor 'Foam::IncompressibleCloud::IncompressibleCloud(co nst Foam::volPointInterpolation&, const Foam::volVectorField&)':
/home/aurelia/OpenFOAM/OpenFOAM-1.4/src/finiteVolume/lnInclude/volPointInterpola tion.H:70: error: 'Foam::volPointInterpolation::volPointInterpolatio n(const Foam::volPointInterpolation&)' is private
IncompressibleCloud.C:68: error: within this context
IncompressibleCloud.C: In member function 'void Foam::IncompressibleCloud::track()':
IncompressibleCloud.C:154: error: 'track' is not a member of 'Foam::Cloud<foam::hardballparticle>'
make: *** [Make/linuxGcc4DPOpt/IncompressibleCloud.o] Error 1

I changed the name of the function called by track() ( Cloud<hardballparticle>::move(*this); ) in IncompressibleCloud.C as it was done in the new Cloud.C. This solves the last error.

But I don't know how to correct the error due the fact that the class volPointInterpolation has been rewritten in version 1.4 and cannot be used anymore in
IncompressibleCloud::IncompressibleCloud(const volPointInterpolation& vpi,const volVectorField& U)

I don't understand either the message of error for the line 68 which is interpolationSchemes_(cloudProperties_.subDict("in terpolationSchemes"))

Thanks if you can help me...
Aurelia
aurelia is offline   Reply With Quote

Old   May 7, 2007, 12:29
Default Hi Aurelia! Making the synt
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Aurelia!

Making the syntax errors go away won't produce a working solver because there is a very subtle difference in the way the subtimesteps are calculated between 1.3 and 1.4. I have a version lying around on my disk that is sort-of-working wich I will push to the Wiki as soon as I am confident that it is really working. If you need it urgently, drop me a mail and I'll send the intermedioate version to you

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 10, 2007, 11:50
Default How can I compile a new solver
  #10
New Member
 
Rui Alexandre Trigo Ribeiro Pereira
Join Date: Mar 2009
Location: Coimbra, Coimbra, Portugal
Posts: 23
Rep Power: 17
ed_teller is on a distinguished road
How can I compile a new solver under OpenFOAM 1.4...? what is the directory structure of my solver, and what should be the requested files, #includes,... etc?
ed_teller is offline   Reply With Quote

Old   May 10, 2007, 15:03
Default It's the same of 1.3. The stru
  #11
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
It's the same of 1.3. The structure of the solver is in the manual.

There were some changes in the syntax mainly.

Regards,
A.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   May 11, 2007, 13:17
Default Thanks Alberto, but my main di
  #12
New Member
 
Rui Alexandre Trigo Ribeiro Pereira
Join Date: Mar 2009
Location: Coimbra, Coimbra, Portugal
Posts: 23
Rep Power: 17
ed_teller is on a distinguished road
Thanks Alberto, but my main difficulty is on how to couple several solvers in a multiphysics setup: I need Compressible MHD, Radiation Hydrodynamics, Phase Transition, and Multigroup (species) Diffusion,...

I know the field equations of the several phenomena.. but i still cannot grasp the numerics of building a single not seggregated solver for the problem...

Simulating a shock implosion in a MHD plasma under a Z-Pinch, to acess the occurence (or not) of Richtmeyer Meshkov instability...
ed_teller is offline   Reply With Quote

Old   May 11, 2007, 16:09
Default An example of multiphysics cou
  #13
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
An example of multiphysics coupled solver is icoFsiFoam. Try to start from there.
There are also examples of segregated solvers (search the wiki for "conjugate heat transfer" or this forum).

Dragos
dmoroian is offline   Reply With Quote

Old   May 13, 2007, 16:21
Default Thx Dragos... Besides the f
  #14
New Member
 
Rui Alexandre Trigo Ribeiro Pereira
Join Date: Mar 2009
Location: Coimbra, Coimbra, Portugal
Posts: 23
Rep Power: 17
ed_teller is on a distinguished road
Thx Dragos...

Besides the fact that the stuff I am trying to simulate is a rather complex one, I am a newbie in OpenFOAM... but I will see the wiki and the icoFsiFoam to see if I can grasp multiphysics solver methodology... Thx a Lot..

Alex
ed_teller 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
InterFoamPressure compilation issues jack OpenFOAM Running, Solving & CFD 3 May 14, 2008 12:38
Dimension issues using CEL Andy CFX 4 April 8, 2008 07:49
FoamX Issues tger003 OpenFOAM Pre-Processing 0 January 18, 2007 15:50
two issues on cfd guang ai Main CFD Forum 1 March 16, 2006 08:24
RSM issues Jonathan Vogt FLUENT 1 August 11, 2005 06:33


All times are GMT -4. The time now is 11:59.