CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   custom-field-function using text command (https://www.cfd-online.com/Forums/fluent/97004-custom-field-function-using-text-command.html)

Zigainer February 7, 2012 04:22

custom-field-function using text command
 
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

xrs333 February 7, 2012 04:57

I'm afraid that's because of the operator '-' in the phrase 'heat-flux'.

Zigainer February 7, 2012 05:01

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 February 7, 2012 05:14

Got the solution!

It is heat_flux.
For other variable the same instead on '-' just '_' that's it

xrs333 February 7, 2012 05:23

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.

Zigainer February 7, 2012 05:27

I got it when I saw the example x_Coordinate

xrs333 February 7, 2012 05:45

thank you. my practice was so clumsy(^o^).

villager May 14, 2014 12:31

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.

sudh June 6, 2023 15:49

Life saver ;-) wasted so long trying to figure this out!! hehe


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