Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

analytic function in another analytic function

Please login with a confirmed email address before reporting spam

Hi,

I have two questions:
1. an analytic cunction that has one argument - sigmaxx that I want to incorperate in another analytic function that has another argument = ec.normE. I cant do it no matter what I try. Please help me. I am using comsol 4.2a

2. I am trying to incorporate an interpolation function inside an analytiv function. Again with ni succuss.

Can someone explain to me why and how to silve the problem

ave_m=(b_thresh+((b_thresh-d_thresh)*flc2hs(sigmaxx-0.7,0.35)+700))/2
diff_m(-b_thresh+((b_thresh-d_thresh)*flc2hs(sigmaxx-0.7,0.35)+700))/2

arguments-sigmaxx

an1=(flc2hs(ec.normE-ave_m(sigmaxx[1/(s/m)]),diff_m(sigmaxx[1/(s/m)])))
arguments: ec.normE, sigmaxx

error:
Wrong number of function arguments.

thanks
Shirley

3 Replies Last Post 2015年5月28日 GMT-4 02:42
COMSOL Moderator

Hello Shirley Sharabi

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2014年3月7日 GMT-5 09:32

2. I am trying to incorporate an interpolation function inside an analytiv function. Again with ni succuss.


This is easy:
1. First create an 'Interpolation' function, default name int1, by choosing 'Table' and enter in the column for [t,f(t)] values : [1,1], [2,4], [3,9], [4,16]
2. Create a new analytic function 'an1', in the expression put 'int1(x)' and in plot parameters choose 'min=1' , 'max=4'
3. Press 'Plot' button on top left and you'll see your analytic function created from the interpolation function

[QUOTE] 2. I am trying to incorporate an interpolation function inside an analytiv function. Again with ni succuss. [/QUOTE] This is easy: 1. First create an 'Interpolation' function, default name int1, by choosing 'Table' and enter in the column for [t,f(t)] values : [1,1], [2,4], [3,9], [4,16] 2. Create a new analytic function 'an1', in the expression put 'int1(x)' and in plot parameters choose 'min=1' , 'max=4' 3. Press 'Plot' button on top left and you'll see your analytic function created from the interpolation function

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年5月27日 GMT-4 16:50
Can we do opposite of thi like analytic function in interpolation function
Can we do opposite of thi like analytic function in interpolation function

Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年5月28日 GMT-4 02:42

Can we do opposite of thi like analytic function in interpolation function


No, this is not possible.


[QUOTE] Can we do opposite of thi like analytic function in interpolation function [/QUOTE] No, this is not possible.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.