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

custom-field-function using text command

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 7, 2012, 05:22
Default custom-field-function using text command
  #1
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 6
Zigainer is on a distinguished road
Hi,

I've got a problem with creating a custom-field-function using the text command.
I want to use text command to wirte a *.jou file that does not require a GUI. but therefore i hve to understand the syntax to write the .jou file.

So I start: (#enter# meens I press enter)

define #enter#
custom-field-functions #enter#
define #enter#
"name" #enter#
heat-flux * ...... #enter#

An then getting "Error Object: #f"

If I just wirte "2*pressure" I don't get any error, why with "heat-flux" ???

Hope you can help me.

Thanks in advance
Zigainer is offline   Reply With Quote

Old   February 7, 2012, 05:57
Default
  #2
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 7
xrs333 is on a distinguished road
I'm afraid that's because of the operator '-' in the phrase 'heat-flux'.
xrs333 is offline   Reply With Quote

Old   February 7, 2012, 06:01
Default
  #3
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 6
Zigainer is on a distinguished road
Sorry I forgot to wirte the error line before "Error Object: #f"

So my output is:

Error: Unknown calculator button heat
Error: Object: #f


I also tried "heat-flux" instead of heat-flux -> error unknown calculator "heat

So how can I use heat-flux?
Zigainer is offline   Reply With Quote

Old   February 7, 2012, 06:14
Default
  #4
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 6
Zigainer is on a distinguished road
Got the solution!

It is heat_flux.
For other variable the same instead on '-' just '_' that's it
Zigainer is offline   Reply With Quote

Old   February 7, 2012, 06:23
Default
  #5
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 7
xrs333 is on a distinguished road
that justified my suspicion.
i suggest you define a custom field function with GUI and save it, than open it with notepad to see if there any clew you can make use of. to say the least, you can load the saved one with text command, in fact, this was my practice.
xrs333 is offline   Reply With Quote

Old   February 7, 2012, 06:27
Default
  #6
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 6
Zigainer is on a distinguished road
I got it when I saw the example x_Coordinate
Zigainer is offline   Reply With Quote

Old   February 7, 2012, 06:45
Default
  #7
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 7
xrs333 is on a distinguished road
thank you. my practice was so clumsy(^o^).
xrs333 is offline   Reply With Quote

Old   May 14, 2014, 12:31
Lightbulb
  #8
Member
 
John M.
Join Date: Jul 2011
Posts: 57
Rep Power: 6
villager is on a distinguished road
You could use
Code:
/define/custom-field-functions/list-valid-cell-function-names
to list all valid variable names to prevent such type of errors.
villager 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
problems after decomposing for running alessio.nz OpenFOAM 5 April 20, 2011 08:44
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
Custom Field Function Question Jason FLUENT 0 August 4, 2004 10:23


All times are GMT -4. The time now is 17:02.