Jump to content
qchen

How to edit user function

Recommended Posts

Hi,

 

When trying to create new geometric or I/O parameter using formula, there is the option of "User function". How do I create and use my own function "func" such that I can use it like I use the function "Sin"? (I tried "Edit user function" but don't know what to do next...)

 

For example, I want to use such a function (just as an example, function can be something else and much more complicated):

 

func(para1, para2, para3)

    return(para1**(para3-para2))

 

Hope I made my question clear.

 

Kind regards,

 

Chen

image.png.27adb51910f20d7e3a565c1277857dfd.png

 

 

Share this post


Link to post
Share on other sites

Hi,

About your formula, in this case you don’t need to use the « user function ». You can create your parameter using the equation editor of Flux.

About the function “User” in Flux, you can use it when you have some kind of algorithm or program. For example:

If X>0

 Y=X^2-1

Else

Y=0

 

Hope this will help.

Best regards.

Share this post


Link to post
Share on other sites
4 hours ago, Flux support said:

Hi,

About your formula, in this case you don’t need to use the « user function ». You can create your parameter using the equation editor of Flux.

About the function “User” in Flux, you can use it when you have some kind of algorithm or program. For example:

If X>0

 Y=X^2-1

Else

Y=0

 

Hope this will help.

Best regards.

Thank you this it exactly what I wanted to do! So how can I realize this by "User" in Flux?

Share this post


Link to post
Share on other sites

Hello qchen,

 

I also want to create a function like this. Do you already know how to do this?

 

Thank you in advance. 

 

Best regards.

Share this post


Link to post
Share on other sites
On 8/6/2018 at 9:34 AM, EmSt said:

Hello qchen,

 

I also want to create a function like this. Do you already know how to do this?

 

Thank you in advance. 

 

Best regards.

Not yet. The flux support pointed out what I exactly want to do but didn't give further details on how to realize it.

Share this post


Link to post
Share on other sites
On 7/6/2018 at 9:06 AM, Flux support said:

Hi,

About your formula, in this case you don’t need to use the « user function ». You can create your parameter using the equation editor of Flux.

About the function “User” in Flux, you can use it when you have some kind of algorithm or program. For example:

If X>0

 Y=X^2-1

Else

Y=0

 

Hope this will help.

Best regards.

Hi could you please show how to do this in Flux? Thank you.

Share this post


Link to post
Share on other sites

Hello qchen, 

 

if you didn't knew it, there is an email flux_support_emea@altair.com where you can ask your quesions also. Normally they respond quickly.

About the User function I'm going to ask them. I will send you the answer here.

 

Best regards.

Share this post


Link to post
Share on other sites

Hello,

 

Here is an example of a groovy function. 

 

FYI, only customers under maintenance have access to the support. In this case Qchen seems to belong to a Chinese university so the correct mail to use for him should be flux_support_apac@altair.com.

 

Best regards

hysteresis_control_with_groovy_example.zip

EmSt likes this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...