|
[Sponsors] | |||||
|
|
|
#1 |
|
Banned
ehsan
Join Date: Oct 2012
Location: Iran
Posts: 1,106
Rep Power: 0 ![]() |
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? |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 115
Rep Power: 5 ![]() |
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.
|
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 155
Rep Power: 4 ![]() |
Indeed, as Matthew suggests, make a habit of doing
Code:
cp -r 0 0.orig Putting the files back is then simply done as Code:
cp 0.orig/* 0/ L |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |