|
[Sponsors] |
February 7, 2012, 04:22 |
custom-field-function using text command
|
#1 |
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14 |
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 |
|
February 7, 2012, 04:57 |
|
#2 |
Senior Member
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 16 |
I'm afraid that's because of the operator '-' in the phrase 'heat-flux'.
|
|
February 7, 2012, 05:01 |
|
#3 |
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14 |
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? |
|
February 7, 2012, 05:14 |
|
#4 |
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14 |
Got the solution!
It is heat_flux. For other variable the same instead on '-' just '_' that's it |
|
February 7, 2012, 05:23 |
|
#5 |
Senior Member
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 16 |
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. |
|
February 7, 2012, 05:27 |
|
#6 |
Senior Member
Join Date: May 2011
Location: Germany
Posts: 130
Rep Power: 14 |
I got it when I saw the example x_Coordinate
|
|
February 7, 2012, 05:45 |
|
#7 |
Senior Member
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 16 |
thank you. my practice was so clumsy(^o^).
|
|
May 14, 2014, 12:31 |
|
#8 |
Member
vlg
Join Date: Jul 2011
Location: My home :)
Posts: 81
Rep Power: 17 |
You could use
Code:
/define/custom-field-functions/list-valid-cell-function-names |
|
June 6, 2023, 15:49 |
|
#9 |
New Member
sudhanshu
Join Date: May 2022
Posts: 1
Rep Power: 0 |
Life saver ;-) wasted so long trying to figure this out!! hehe
|
|
|
|
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 |