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

Questions about Time Directories

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 31, 2013, 16:06
Default Questions about Time Directories
  #1
New Member
 
John
Join Date: May 2013
Posts: 2
Rep Power: 0
xCray is on a distinguished road
Hi, I'm a student who is new to OpenFoam.

I have 6 time directories (10.000, 10.001, 10.002, ..., 10.005)

I used "pimpleFoam" funtion to generate 10.001 ~ 10.005 directories using the initial 10.000 directory.

In each of these directories, there are dictionaries such as p, phi, and U.

Each of them contain its own Dimentions, internalFields (non uniform), and Boundary conditions.

My goal is to test IF I remove all the internalFields of each dictionaries(p,U,phi) of time directories from 10.001 to 10.005, and run the simulation by the function "icoFoam," it would PRODUCE a internalField in the 10.005 time directory.

However, when I run the icoFoam function, it gives me an error saying:

"Create time

Create mesh for time = 10.005

Reading transportProperties

Reading field p

--> FOAM FATAL IO ERROR:
keyword internalField is undefined in dictionary "10.005/p"
"

I was wondering if I need to provide a space for the data to be written on.
So I have tried providing an empty array of internalField, but still gives me an error.

What could I do to fix this?

Also, this is my first time asking any question. Is there any more information that I should provide? Apologies if the question isn't clear!

Thank you so much!
xCray is offline   Reply With Quote

Old   May 31, 2013, 23:52
Default
  #2
Senior Member
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 162
Rep Power: 6
fumiya is on a distinguished road
Hi John,

Welcome to the Forum

I understand you are trying to compare the results obtained by icoFoam with by pimpleFoam.
The simplest and straightforward way is to copy the three directories 10.000, constant, and system
and create a new case icoFoam_case(name it as you like) and run the icoFoam. So, there are two cases:

icoFoam_case/{10.000, constant, system}: You'll run icoFoam here
pimpleFoam_case/{10.000, 10.001, 10.002, ..., 10.005, constant, system}: You've already run the pimpleFoam here

As to the error message, I think it occured because you set "startFrom" to "latestTime" and
deleted the dictionary internalFields in the latest time 10.005 in your case.

Hope this helps,
Fumiya
fumiya is offline   Reply With Quote

Old   June 1, 2013, 00:23
Default
  #3
New Member
 
John
Join Date: May 2013
Posts: 2
Rep Power: 0
xCray is on a distinguished road
Thank you so much for your kind answer!

It helped a lot and I was able to make some progress.

However, the "error" part still seems to be unsolvable for me.

You have mentioned that "As to the error message, I think it occured because you set "startFrom" to "latestTime" and deleted the dictionary internalFields in the latest time 10.005 in your case."

Is there any ways I could fix it?

I should have mentioned what my goals were more clearly.

It is to try editing the U files from a few directories, say all the ones following 10.002, changing, for example:

INLET
{
type fixedValue;
value uniform (0.2 0 0);
}

to

INLET
{
type fixedValue;
value uniform (0.3 0 0);
}


And see if there is any changes in result at 10.005.

I was told, for each of the new folders that I created in advance (or simply deleted the content from the first run), include copies of the results files (p, phi, U) containing only:
1) the header as in folder 10.000/ up to and including line "dimensions [...]"
2) jump over the internalField (do not include it)
3) the final part, from "boundaryField" on to the end.

And copy these 3 shortened files into each of the directories (folders) and see, if the program runs as usual (using icoFoam).

I have currently copied all shortened files into each of the directories. But the program seems to be not running as usual (the error occurs).

Could you give me some help one more time?
xCray is offline   Reply With Quote

Old   June 1, 2013, 00:34
Default
  #4
Senior Member
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 162
Rep Power: 6
fumiya is on a distinguished road
Quote:
2) jump over the internalField (do not include it)
You have to include the "internalField" to run the solvers.
It specifies the initial condition.

Hope this helps,
Fumiya
fumiya is offline   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
Reusing the inlet time directories in timeVaryingMappedFixedValue ngj_22 OpenFOAM Running, Solving & CFD 0 January 24, 2013 10:22
AMI speed performance danny123 OpenFOAM 19 October 24, 2012 07:44
How to read field files from the two different time directories fumiya OpenFOAM 0 July 16, 2012 09:44
Full pipe 3D using icoFoam cyberbrain OpenFOAM 4 March 16, 2011 10:20
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 12 September 17, 2007 17:48


All times are GMT -4. The time now is 18:33.