CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Patches for OpenFOAM 1.7 on MacOS X (https://www.cfd-online.com/Forums/openfoam-installation/77570-patches-openfoam-1-7-macos-x.html)

albem September 20, 2011 20:40

Hi

I have installed OpenFOAM-1.6-ext on my Mac, I could compile conjugateHeatFoam solver but when I ran it I got

--> FOAM FATAL ERROR:
Attempt to cast type wall to type lduInterface

From function refCast<To>(From&)
in file /Users/hjasak/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/typeInfo.H at line 115.


It is strange to me because the directory /Users/hjasak/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude

does not exist in my Mac

I have observed that in my

conjugateCavity/constant/solid/polyMesh/boundary file

I have

FoamFile
{
version 2.0;
format ascii;

root "/home/hjasak/OpenFOAM/hjasak-1.3/run/coupledMatrix";
case "heatedBlock";
instance "constant";
local "polyMesh";

class polyBoundaryMesh;
object boundary;
}

I don't know what I could write in root, Should I write the directory where coupledMatrix is located or the directory where my heatedBlock directory is located?

Any help is welcome

Alberto

gschaider September 21, 2011 05:37

Quote:

Originally Posted by albem (Post 324952)
Hi

I have installed OpenFOAM-1.6-ext on my Mac, I could compile conjugateHeatFoam solver but when I ran it I got

--> FOAM FATAL ERROR:
Attempt to cast type wall to type lduInterface

From function refCast<To>(From&)
in file /Users/hjasak/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude/typeInfo.H at line 115.


It is strange to me because the directory /Users/hjasak/OpenFOAM/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude

does not exist in my Mac

I have observed that in my

conjugateCavity/constant/solid/polyMesh/boundary file

I have

FoamFile
{
version 2.0;
format ascii;

root "/home/hjasak/OpenFOAM/hjasak-1.3/run/coupledMatrix";
case "heatedBlock";
instance "constant";
local "polyMesh";

class polyBoundaryMesh;
object boundary;
}

I don't know what I could write in root, Should I write the directory where coupledMatrix is located or the directory where my heatedBlock directory is located?

Any help is welcome

Alberto

The paths you are refering to are inserted into the binaries during compilation. If you compile OF yourself they will point to places you know

About the actual problem. This is not Mac-specific but a general problem (I'd propose you move to another thread. One about conjugateFoam). Have you run the tutorial using the Allrun-script? Because that does some manipulations that might fix you problem


All times are GMT -4. The time now is 15:25.