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

Patch flow in batch mode

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 24, 2011, 04:21
Question Patch flow in batch mode
  #1
New Member
 
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 5
forgottenman is on a distinguished road
Hello
I want to simulate a three-phase flow by fluent in batch mode without graphic. I know how the flow can be initialized. This is the script:
............script...........
rc bed.cas
/solve/initialize/initialize-flow
/solve/iterate 100
/file/write-data bed1
exit
yes
..................................
But I need to assign a volume fraction to a zone of my field. It can be done by patch window in fluent. solve/initialize/patch
How can I enter this command to above script?
forgottenman is offline   Reply With Quote

Old   November 24, 2011, 08:33
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Dear Majid,

Do anything you want by TUI in FLUENT console then put your written commands in TUI in your script.

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 25, 2011, 14:10
Default
  #3
New Member
 
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 5
forgottenman is on a distinguished road
Dear Amir
I have no idea about that command. It seems like this:
solve/initialize/patch...
but I don't know the exact one.
forgottenman is offline   Reply With Quote

Old   November 25, 2011, 15:39
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Quote:
Originally Posted by forgottenman View Post
Dear Amir
I have no idea about that command. It seems like this:
solve/initialize/patch...
but I don't know the exact one.
This is:
Code:
/solve/patch
then, enter your domain ID and then variable.
As I said before, examine this procedure in TUI first and then put it in your script!

Bests,
__________________
Amir
Amir is offline   Reply With Quote

Old   November 26, 2011, 09:42
Default
  #5
New Member
 
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 5
forgottenman is on a distinguished road
Thankyou dear Amir
It's done
forgottenman is offline   Reply With Quote

Old   January 9, 2014, 07:21
Default
  #6
Member
 
Mark
Join Date: Feb 2013
Location: London
Posts: 33
Rep Power: 4
M_Tidswell is on a distinguished road
Hi

I wondered if I could ask how you got your variable to sit in the code, I am trying to patch in the premixed combustion model with a value of 1, i have part of it right but fluent doesnt seem to like how im writing the variable

/solve/patch/(16) this bit is fine but if I try
/solve/patch/(16)/premixc

it all fails

Hopefully I'm missing a bit of formatting

Thank you!
M_Tidswell is offline   Reply With Quote

Old   April 3, 2014, 06:14
Default
  #7
New Member
 
Join Date: Nov 2013
Posts: 18
Rep Power: 3
magicalmarshmallow is on a distinguished road
I am simply trying to patch an initial temperature to multiple domains in batch mode.

What I have so far is

/solve/patch/(2,3,4,5) 500

Is this correct does anyone know?

Cheers
magicalmarshmallow is offline   Reply With Quote

Old   April 3, 2014, 19:33
Default
  #8
Member
 
Mark
Join Date: Feb 2013
Location: London
Posts: 33
Rep Power: 4
M_Tidswell is on a distinguished road
Hi

I think this is right but you will have to check it is from memory, if you boot up the fluent gui you can run it from the tui window so you can check all your bits of code prior to using it in batch mode. Granted that only works if you have access to the GUI as well, I was using a cluster in batch mode but had in on my comp so was able to check things once I realised (took me a while).

Anyway your bit of code:

/solve/patch/(Zone_1,Zone_2,Zone_3) temperature 500

Where the zone_1 etc are the name of your cell zones

Have fun
M_Tidswell 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
Problem with cyclic boundaries in Openfoam 1.5 fs82 OpenFOAM 37 January 7, 2015 01:31
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 12:23
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Help!! Why I can't run fluent in batch mode? Cindy Jones FLUENT 0 April 8, 2003 23:39


All times are GMT -4. The time now is 19:31.