CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problems with a new solver (http://www.cfd-online.com/Forums/openfoam-solving/60579-problems-new-solver.html)

chris10 June 7, 2005 10:54

hi all, i have created a ne
 
hi all,

i have created a new solver and i have compiled it successfully, but when i tried to calculate an example i get the following errors:


free(): invalid pointer 0x80b7400!
free(): invalid pointer 0x80b9d78!
free(): invalid pointer 0x80bcb30!
free(): invalid pointer 0x80be000!
free(): invalid pointer 0x80ba2b8!
free(): invalid pointer 0x80b9a38!
free(): invalid pointer 0x80b9a78!
free(): invalid pointer 0x80bdaa8!
free(): invalid pointer 0x80bc590!
Segmentation fault
.

The adresses of the invalid pointers are always the same, so i think it is a static problem.

who can help me?

mattijs June 7, 2005 11:39

1. Can you run one of the stan
 
1. Can you run one of the standard solvers?

2. Create a copy of one of the standard solvers e.g. icoFoam and compile this and see if you get the same.

3. Is your gcc the one supplied by us or your system one?

chris10 June 7, 2005 11:54

1. yes i can run the standard
 
1. yes i can run the standard solvers.
2. if i compile a standard solver with my gcc i get the same results. so i think the reason for the errors is my gcc.

thanks for your support!

chris10 June 14, 2005 06:21

hi, i have created a new s
 
hi,

i have created a new solver for incompressible flow and i have compiled it successfully, but when i tried to calculate an example i get the following error:

--> FOAM FATAL ERROR :
request for volScalarField rho from objectRegistry region0 failed
available objects of type volScalarField are

i want to calculate incompressible flows, so i donīt need the "volScalarFiels rho". so my qurstion is, which file needs the density?

henry June 14, 2005 06:25

What models and boundary condi
 
What models and boundary conditions are you using?
When do you get this message? i.e. what is the code doing at the time?

chris10 June 14, 2005 09:24

i started with icoFoam (incomp
 
i started with icoFoam (incompressible, no turbulence model) and i combined it with buoyantFoam.

boundary conditions: T: fixedValue/zeroGradient,
p-WallBuoyantPressure,
U-fixedValue

i get the message at the first time step:

================================================




Starting time loop


Max Courant Number = 0
Time = 10

BICCG: Solving for T, Initial residual = 1, Final residual = 2.50922e-07, No Iterations 6


--> FOAM FATAL ERROR :
request for volScalarField rho from objectRegistry region0 failed
available objects of type volScalarField are

6
(
p
div(phi)
A(U)
1|A(U)
T_0
T
)


Function: objectRegistry::lookupObject<type>(const word&) const
in file: /home/dm2/henry/OpenFOAM/OpenFOAM-1.1/src/OpenFOAM/lnInclude/objectRegistryTempl ates.C at line: 122.

FOAM aborting

==============================================

henry June 14, 2005 09:51

> p-WallBuoyantPressure I w
 
> p-WallBuoyantPressure

I wrote this boundary condition for the buoyantFoam and related codes and because these are compressible (variable-density) codes this BC needs the density.

chris10 June 14, 2005 10:10

why do the pressure in incompr
 
why do the pressure in incompressilbe flows have the dimension [0 2 -2 0 0 0 0] (icoFoam) and in compressible flows [1 -1 -2 0 0 0 0] (buoyantFoam)? Did you set the density to 1 and divided the pressure by the density?

henry June 14, 2005 10:16

The pressure is divided by the
 
The pressure is divided by the density in the single-phase incompressible solvers but this does not imply the density is 1 only that is it constant and uniform.

chris10 June 14, 2005 10:44

now i have a new problem: i h
 
now i have a new problem:
i have three output variables, but only the values of one were written in the runtime directory, the other files look like the initial files at runtime 0.

what did i wrong? should i AUTO_WRITE change to MUST_WRITE?


All times are GMT -4. The time now is 04:55.