CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Split domain - files are overwritten

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

LinkBack Thread Tools Display Modes
Old   December 7, 2011, 09:55
Default Split domain - files are overwritten
Senior Member
Join Date: Mar 2011
Posts: 174
Rep Power: 8
anon_a is on a distinguished road
I have a domain that I would like to be splitted in two parts according to a certain condition.
Therefore, I define two "labelHashSet" containing the corresponding cells and the two parts of the mesh are then extracted by "fvMeshSubset"

    labelHashSet Set1(Set1Cells);
    labelHashSet Set2(Set2Cells);

    // define condition and insert cells in each of the two sets

    fvMeshSubset subsetter(mesh);
    fvMeshSubset subsetter2(mesh);

    subsetter.setLargeCellSubset(Set1, -1, true);
    subsetter2.setLargeCellSubset(Set2, -1, true);

The problem is that I have no control over the write() function directory and therefore the files are overwritten.
I also assume it would not be a good idea to mess with the library file. Any ideas?
anon_a is offline   Reply With Quote


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
Default domain jaho CFX 5 February 16, 2014 01:00
Multiple domain interfaces on a single surface mike CFX 2 January 26, 2009 18:03
Split ICEM .tin files - how? Bernhard CFX 5 June 27, 2007 08:41
Fluid domain split Russ FLUENT 1 August 19, 2004 23:21
[making animations] fclose fails to close files? Mika FLUENT 0 March 30, 2001 08:19

All times are GMT -4. The time now is 05:58.