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

is there a command to restate after setFields?

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

Like Tree2Likes
  • 1 Post By mgdenno
  • 1 Post By Lieven

Reply
 
LinkBack Thread Tools Display Modes
Old   April 30, 2013, 11:58
Default is there a command to restate after setFields?
  #1
Banned
 
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0
immortality is an unknown quantity at this point
I have changed the mesh after setFields command and it now gives an error
.so I like to know if is there a command or way to delete non uniform initial values and set it again after such changes?
immortality is offline   Reply With Quote

Old   April 30, 2013, 12:56
Default
  #2
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 115
Rep Power: 5
mgdenno is on a distinguished road
I am not aware of a utility to reset the fields, however you can just open the text files in the 0 directory and delete the internal fields data so that the file only contains the boundary conditions. In general, I think the approach is to create a copy of the field files before running to setFields to avoid having to do it manually.
immortality likes this.
mgdenno is offline   Reply With Quote

Old   April 30, 2013, 16:14
Default
  #3
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 155
Rep Power: 4
Lieven is on a distinguished road
Indeed, as Matthew suggests, make a habit of doing
Code:
cp -r 0 0.orig
before modifying the fields in the 0-folder. This will save you a lot of time ;-).
Putting the files back is then simply done as
Code:
cp 0.orig/* 0/
Cheers,

L
immortality likes this.
Lieven 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
how to use setFields in multiregionsolver lg88 OpenFOAM 8 January 15, 2013 05:01
setFields tool does not assign water volume for given mesh. paka OpenFOAM 2 June 7, 2012 09:17
Problems with the execution of the setFields utility. foamer OpenFOAM 2 November 9, 2011 05:27
setFields not working dsanza OpenFOAM 2 September 14, 2011 09:00
question on setFields fijinx OpenFOAM Running, Solving & CFD 1 February 15, 2010 15:07


All times are GMT -4. The time now is 21:43.