From: stéphane t. <stc...@ya...> - 2008-06-26 20:53:16
|
Exactly! I hadnt seen that the "system.project_solution" considered the unknown name, sorry :-) Thanks a lot. Stephane. ---------------------------------------- > Date: Thu, 26 Jun 2008 13:41:58 -0500 > From: pet...@ta... > To: stc...@ya... > Subject: Re: [Libmesh-users] attach_init_function in Libmesh > CC: lib...@li...; ben...@na... > > On Thu, Jun 26, 2008 at 1:25 PM, stéphane tchouanmo <stc...@ya...> wrote: > > Hi everybody, > > > > Im trying to solve a two-variable transient system and want to consider a different initial condition for each variable. > > Actually I use one system and add two variables of different size to it. Then I would like to attach an initial function to each variable of the system. Usually a "system.attach_init_function" will make a L2 projection of the initial given function on the system's solution ie. the global variable at first step. But how do you project two different functions on each of the two variables (which supposes taking into account the size of each variable). > > Does anybody have an idea? Is there a way to do such a thing in Libmesh? Because I cant find something like that. > > You can only attach one initialization function, but the > initialization function you attach can call other functions which > initialize each variable separately. Or you can just initialize each > variable from within the function you attach. > > > -- > John _____________________________________________________________________________ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr |