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

Problems with a new solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 7, 2005, 10:54
Default hi all, i have created a ne
  #1
chris10
Guest
 
Posts: n/a
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?
  Reply With Quote

Old   June 7, 2005, 11:39
Default 1. Can you run one of the stan
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
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?
mattijs is offline   Reply With Quote

Old   June 7, 2005, 11:54
Default 1. yes i can run the standard
  #3
chris10
Guest
 
Posts: n/a
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!
  Reply With Quote

Old   June 14, 2005, 06:21
Default hi, i have created a new s
  #4
chris10
Guest
 
Posts: n/a
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?
  Reply With Quote

Old   June 14, 2005, 06:25
Default What models and boundary condi
  #5
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
What models and boundary conditions are you using?
When do you get this message? i.e. what is the code doing at the time?
henry is offline   Reply With Quote

Old   June 14, 2005, 09:24
Default i started with icoFoam (incomp
  #6
chris10
Guest
 
Posts: n/a
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

==============================================
  Reply With Quote

Old   June 14, 2005, 09:51
Default > p-WallBuoyantPressure I w
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
> 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.
henry is offline   Reply With Quote

Old   June 14, 2005, 10:10
Default why do the pressure in incompr
  #8
chris10
Guest
 
Posts: n/a
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?
  Reply With Quote

Old   June 14, 2005, 10:16
Default The pressure is divided by the
  #9
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 13
henry is on a distinguished road
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.
henry is offline   Reply With Quote

Old   June 14, 2005, 10:44
Default now i have a new problem: i h
  #10
chris10
Guest
 
Posts: n/a
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?
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems about compiling a new solver fw407 OpenFOAM Running, Solving & CFD 1 December 27, 2007 14:52
Solver problems JV CD-adapco 0 October 27, 2005 23:31
Problems with VOF solver Benjamin FLUENT 0 August 20, 2004 08:17
Solver Software (?) problems JvK CFX 5 August 9, 2002 13:33
Solving 2-d problems by 3-d solver eddy Main CFD Forum 3 September 7, 2000 06:15


All times are GMT -4. The time now is 05:45.