Giter VIP home page Giter VIP logo

Comments (5)

mrklein avatar mrklein commented on June 28, 2024

Hi,

Could elaborate on "staying in the cavity directory and executing"? Did you execute this command par command, or just copied-and-pasted the whole block to the terminal? Is there system/decomposeParDict file?

from openfoam-os-x.

Funky-Fresh avatar Funky-Fresh commented on June 28, 2024

I executed command of the cavity tutorial first and then, still in the cavity folder $ cd cavity. Then I executed the first command block

$ cat > system/decomposeParDict

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}

numberOfSubdomains 4;

method scotch;
^D

with the result: no system/decomposeParDict and the other commands not found. The same happened when running ´blockMesh´ (no system/decomposeParDict`).

Until now I also looked up the tutorial and tried it with cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity .
instead of cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .

This seems to add the system/decomposeParDict after running foamRunTutorials (also blockMeshis working now)

But afterwards, the command cat > system/decomposeParDict.... just result in nothing. It shows no errors, but it also does not seem to calculate anything and I have to always exit with control-c.

from openfoam-os-x.

mrklein avatar mrklein commented on June 28, 2024

The first command is

cat > system/decomposeParDict

FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object decomposeParDict;
}

numberOfSubdomains 4;

method scotch;

It creates decomposeParDict and should be finished by EOF (^D or Ctrl-D). Since you press Ctrl-C, file is not created. From your point of view, it does nothing, yet, it is not the case.

And as your first command fails to do what it is supposed to, you end up without decomposeParDict file.

from openfoam-os-x.

Funky-Fresh avatar Funky-Fresh commented on June 28, 2024

ohh okay, the ^D stands for CTRL-D. Thank you, now its working!

May I suggest that you change
cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
to
cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity . ?

from openfoam-os-x.

mrklein avatar mrklein commented on June 28, 2024

Variant of cavity tutorial were moved into separate folder in version 4. So, let's hope people, using earlier versions, will not propose to change wiki again.

from openfoam-os-x.

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.