Giter Site home page Giter Site logo

Comments (10)

TheodoreGalanos avatar TheodoreGalanos commented on June 27, 2024

Hi Mostapha.

This is a very standard error for parafoam even in Linux.

I have found a couple of ways to go around it.

  1. You follow the advise of the parafoam wiki page (unfortunately, not sure they will work on windows). I believe the problem lies on a well known error in the vtkXOpenGLRenderWindow.cxx file that comes with paraview. The usual fix lies in step 9 of this link: https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.4.0/Ubuntu#Ubuntu_14.04 Again, not sure it helps as this is for Linux.
  2. Another solution is for you to try the builtin parafoam by typing the command: paraFoam -builtin. This usually works but will never open the latest version (I believe in current OF it uses 4.0.4).
  3. You can install paraview as a separate program and then open the .foam files manually. From my experience lately it seems that paraview 4.4 is able to recognise OF case folders and always finds (creates?) the .foam file. This solution seems crude but it's the only way I know that will let you use the latest (v4.4) paraview which is MUCH different and quite improved.

Let me know if this helped.

Kind regards,
Theodore.

from butterfly.

mostaphaRoudsari avatar mostaphaRoudsari commented on June 27, 2024

Hi Theodore, Thank you for the reply.
I think option 1 is not applicable to Windows. I tried Option 2 and it at least tells me where it is looking for ParaView: /opt/OpenFOAM/OpenFOAM-2.4.0/bin/paraFoam: line 265: paraview: command not found but the issue is that I couldn't find a way to copy the files to that folder on VM. Maybe I should give it another try once I feel more fresh. Option 3 works though and that's what I'm using for now. Eventually we need to figure it out but for now it doesn't stop us from the development.

from butterfly.

mostaphaRoudsari avatar mostaphaRoudsari commented on June 27, 2024

I think it's not supposed to work on Windows version based on the README.txt file:

Postprocessing :

i) To do the postprocessing, user need to install paraview seprately as mentioned in starting of README file.
ii)Once user has completed the simulation, a file with suffix (.foam) like "casename.foam" has to be created inside the case. User can create file by using command 'touch a.foam' inside case folder.
iii)User can launch Paraview and browse inside folder and open the file with suffix (.foam i.e as a.foam ) to visualize case.

from butterfly.

TheodoreGalanos avatar TheodoreGalanos commented on June 27, 2024

Hmm that is weird cause my paraFoam command works on Windows. Windows or Linux, this exact same error is quite popular and I've still not really understood why it works on some and not on other pcs. If you can compile in Windows (really not sure), you can try compiling parafoam. Other than that, the new paraview is kinda sweet :)

from butterfly.

mostaphaRoudsari avatar mostaphaRoudsari commented on June 27, 2024

@TheodoreGalanos does it work for you in Windows from the command line in VM? I can run it from Windows cmd but the question is how to run it from inside VM:

image

from butterfly.

TheodoreGalanos avatar TheodoreGalanos commented on June 27, 2024

Oh, I now understand. I've only tried it with the command window that comes with OF. And yes that is exactly the error one sees so often. I currently have it on half my Linux computers at work, working perfectly on other half. Re-compiling, like the error says, did help me on occasion. But that message is obviously ported directly from Linux, not sure it would work on Windows.
Maybe we can try on cfd-direct.

from butterfly.

stefan-buildSCI avatar stefan-buildSCI commented on June 27, 2024

For what it's worth, I've used Theodores workaround in a few cases where I
didn't have access to the paraFoam command and it worked fine, although
there was some slight loss of functionality regarding what pieces of the
mesh you can select. I don't remember exactly what that was right now.

Does the command "paraview" do anything in the VM? I'm guessing not...

On Tue, Nov 3, 2015 at 2:15 PM, TheodoreGalanos [email protected]
wrote:

Oh, I now understand. I've only tried it with the command window that
comes with OF.


Reply to this email directly or view it on GitHub
#3 (comment)
.

from butterfly.

chpjz0391 avatar chpjz0391 commented on June 27, 2024

@mostaphaRoudsari have you solved this problem?? I have met the same question.

from butterfly.

mostaphaRoudsari avatar mostaphaRoudsari commented on June 27, 2024

@chpjz0391 not yet!

from butterfly.

mostaphaRoudsari avatar mostaphaRoudsari commented on June 27, 2024

_How can I post process the results from OpenFOAM? I am unable to launch Paraview/ParaFoam from terminal?_
You will need to install ParaView for Windows separately from ParaView. Create a file with the suffix ”.foam” e.g. type the command ”touch a.foam” in your case folder. Launch ParaView and browse the case folder. Open the file with suffix ”.foam” to start the post processing.

from here: http://www.openfoam.com/download/install-windows.php

from butterfly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.