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

Questions about Time Directories

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

Reply
 
LinkBack Thread Tools Search this Thread 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's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
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's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read field files from the two different time directories fumiya OpenFOAM 1 August 1, 2021 06:58
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 04:13
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 16, 2019 23:12
Reusing the inlet time directories in timeVaryingMappedFixedValue ngj_22 OpenFOAM Running, Solving & CFD 0 January 24, 2013 10:22
Full pipe 3D using icoFoam cyberbrain OpenFOAM 4 March 16, 2011 09:20


All times are GMT -4. The time now is 07:29.