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

custom-field-function using text command

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Zigainer

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2012, 04:22
Default custom-field-function using text command
  #1
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14
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, 04:57
Default
  #2
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 16
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, 05:01
Default
  #3
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14
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, 05:14
Default
  #4
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14
Zigainer is on a distinguished road
Got the solution!

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

Old   February 7, 2012, 05:23
Default
  #5
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 16
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, 05:27
Default
  #6
Senior Member
 
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14
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, 05:45
Default
  #7
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 16
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
 
vlg
Join Date: Jul 2011
Location: My home :)
Posts: 81
Rep Power: 17
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

Old   June 6, 2023, 15:49
Default
  #9
New Member
 
sudhanshu
Join Date: May 2022
Posts: 1
Rep Power: 0
sudh is on a distinguished road
Life saver ;-) wasted so long trying to figure this out!! hehe
sudh is offline   Reply With Quote

Reply


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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 04:49
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10: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 06:59
Custom Field Function Question Jason FLUENT 0 August 4, 2004 10:23


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