CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   STAR-CCM+ (http://www.cfd-online.com/Forums/star-ccm/)
-   -   Field function definition (http://www.cfd-online.com/Forums/star-ccm/115263-field-function-definition.html)

695892131 March 27, 2013 07:29

Field function definition
 
Hi,
in my project I need to define pressure as a function. The pressure should be 7000*(1+cos(2*pi*x/L)). L is the length of the pipe which is 100m. x is the position.
Here is my field function definition 7000*(1+cos(2*pi*$$PositionX/100)) .Can anybody tell me where is wrong? Thanks in advance

rwryne March 27, 2013 15:38

Quote:

Originally Posted by 695892131 (Post 416698)
Hi,
in my project I need to define pressure as a function. The pressure should be 7000*(1+cos(2*pi*x/L)). L is the length of the pipe which is 100m. x is the position.
Here is my field function definition 7000*(1+cos(2*pi*$$PositionX/100)) .Can anybody tell me where is wrong? Thanks in advance


I think $$PositionX should be $$Position[0]

Also, youll have to manually type in the value for pi, STAR-CCM+ doesnt recognize it by default


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