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

Patch flow in batch mode

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2011, 03:21
Question Patch flow in batch mode
  #1
New Member
 
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 14
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, 07:33
Default
  #2
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
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, 13:10
Default
  #3
New Member
 
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 14
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, 14:39
Default
  #4
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Montreal, QC
Posts: 735
Blog Entries: 1
Rep Power: 22
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, 08:42
Default
  #5
New Member
 
Majid Mostafazadeh
Join Date: Nov 2011
Posts: 15
Rep Power: 14
forgottenman is on a distinguished road
Thankyou dear Amir
It's done
forgottenman is offline   Reply With Quote

Old   January 9, 2014, 06:21
Default
  #6
Member
 
Mark
Join Date: Feb 2013
Location: London
Posts: 33
Rep Power: 13
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: 12
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: 13
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 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
Problem with cyclic boundaries in Openfoam 1.5 fs82 OpenFOAM 36 January 7, 2015 00: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 06:51
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 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 14:13.