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

Problems with a new solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2005, 11: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, 12:39
Default 1. Can you run one of the stan
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 12: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, 07: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, 07:25
Default What models and boundary condi
  #5
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
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, 10: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, 10:51
Default > p-WallBuoyantPressure I w
  #7
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
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, 11: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, 11:16
Default The pressure is divided by the
  #9
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
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, 11: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


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 Off
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 Siemens 0 October 28, 2005 00:31
Problems with VOF solver Benjamin FLUENT 0 August 20, 2004 09:17
Solver Software (?) problems JvK CFX 5 August 9, 2002 14:33
Solving 2-d problems by 3-d solver eddy Main CFD Forum 3 September 7, 2000 07:15


All times are GMT -4. The time now is 08:50.