Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #13696

Separating space and time functions

From carlos%colorado.edu@gtempaccount.com
Newsgroups comp.soft-sys.math.mathematica
Subject Separating space and time functions
Date 2013-03-04 03:58 +0000
Message-ID <kh164k$sam$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


When solving certain spacetime PDEs I get a solution F that can be factored as
       
                     F(space,time) = f(space)*g(time)

E.g.,  in 1D space, F(x,y)= (a0+a1*x+a2*x^2)*(b0+b1*t+b2*Log[t]), 
which will be used as one of the test functions below.  Then 
f(x)=a0+a1*x+a2*x^2 and g(t)=b0+b1*t+b2*Log[t].

I wrote the following module to separate g(t):

 SeparateFunctionOfTime[f_,t_]:=Module[{g1,g2,g},
       g1=Simplify[D[f,t]/f]; 
       g2=Simplify[Integrate[g1,t]];
       g=  Simplify[Exp[g2]];
       Return[g]];

ClearAll[x,t,a0,a1,a2,b0,b1,b2];  
f=(a0+a1*x+a2*x^2)*(b0+b1*t+b2*Log[t]);
Print["sep time function: ", SeparateFunctionOfTime[f,t]];

sep time function: b0 + b1 t + b2 Log[t]

(I typed all of the above code directly, looking at a test cell.)
So far this has worked for the problems I have solved so far (I am doing
wave dispersion studies in some advanced micromaterials). Questions:
(1) could this  method fail if Integrate[..] is unable to do the integrand
 f'/f = (Log[f])', and (2) could a more robust method be used then?

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Separating space and time functions carlos%colorado.edu@gtempaccount.com - 2013-03-04 03:58 +0000
  Re: Separating space and time functions debguy <johnandsara2@cox.net> - 2013-04-10 04:47 +0000

csiph-web