pde

Julia challenge - FitzHugh–Nagumo model PDE Runge-Kutta solver

↘锁芯ラ 提交于 2021-02-11 11:52:59
问题 I am newbie in Julia programming language, so I don't know much of how to optimize a code. I have heard that Julia should be faster in comparison to Python, but I've written a simple Julia code for solving the FitzHugh–Nagumo model , and it doesn't seems to be faster than Python. The FitzHugh–Nagumo model equations are: function FHN_equation(u,v,a0,a1,d,eps,dx) u_t = u - u.^3 - v + laplacian(u,dx) v_t = eps.*(u - a1 * v - a0) + d*laplacian(v,dx) return u_t, v_t end where u and v are the

Julia challenge - FitzHugh–Nagumo model PDE Runge-Kutta solver

☆樱花仙子☆ 提交于 2021-02-11 11:52:49
问题 I am newbie in Julia programming language, so I don't know much of how to optimize a code. I have heard that Julia should be faster in comparison to Python, but I've written a simple Julia code for solving the FitzHugh–Nagumo model , and it doesn't seems to be faster than Python. The FitzHugh–Nagumo model equations are: function FHN_equation(u,v,a0,a1,d,eps,dx) u_t = u - u.^3 - v + laplacian(u,dx) v_t = eps.*(u - a1 * v - a0) + d*laplacian(v,dx) return u_t, v_t end where u and v are the

Coupling pdes across various domains using fipy

旧城冷巷雨未停 提交于 2021-01-29 19:21:43
问题 I am completely new to fipy. I am trying to solve the following set of pdes across two different domains using fipy. The variables are p,n and ψ and q,Dn,Dp,un,up,e and N are all constants. N and e change values from domain 1 to domain 2. Domain 2 is a rectangular domain stacked above a similar rectangular domain 1. The variables p and n are to be solved for in domain 1 and ψ is to be solved for in both the domains- domain1 and domain 2. qDn∇2n − qun∇.(n∇ψ) = q(n-10**11)/10**(-6), in Domain 1

Coupled non-linear equations in FyPi

不羁岁月 提交于 2021-01-29 08:47:49
问题 I'm trying to set up a system for solving these 5 coupled PDEs in FyPi to study the dynamics of electrons and holes in semiconductors The system of coupled PDEs I'm struggling with defining the terms highligted in blue as they're products of one variable with gradient of another. For example, I'm able to define the third equation like this without error messages: eq3 = ImplicitSourceTerm(coeff=1, var=J_n) == ImplicitSourceTerm(coeff=e*mu_n*PowerLawConvectionTerm(var=phi), var=n) +

Accessing the timestamp after PDE build

天涯浪子 提交于 2020-01-06 04:23:10
问题 Am using ant to build my RCP application. The PDE headless build works well. However for some custom bundling of my artifacts, i need to access the timestamp that PDE uses while creating jars of my plugins and features. Ex: com.test.app.1.0.0.201404091703.jar I need to get the value 201404091703 from the PDE once the build is successful. Is this possible? I tried with forceContextQualifier from the build.properties, but the problem with this is, everytime before the build starts i need to

Target Platform for PDE Headless build does not work

孤人 提交于 2020-01-01 09:58:18
问题 I am currently trying to get my headless pde-build working but I am stuck on a point where I do not know how to continue. The problem is how to define the related target platform to compile the plugins against. I have a build.bat with the following call (all in one line!): java -jar D:\target\eclipse\plugins\org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -application org.eclipse.ant.core.antRunner -f D:\target\eclipse\plugins\org.eclipse.pde.build_3.5.2.R35x_20100114\scripts

What's 'API Baseline' in Eclipse PDT

﹥>﹥吖頭↗ 提交于 2019-12-21 07:07:43
问题 Since upgrading to Eclipse 3.7, the Eclipse PDE plugin wants me to specify an 'API Baseline' for all my Eclipse Plugin projects. However there seems to be no documentation which actually explains what 'API Baseline' stands for here, and what is it used for. Could somebody please explain? 回答1: From the PDE API Tools User Guide: An API baseline defines the state you want to compare your development workspace bundles against for the purposes of binary compatibility, bundle version numbers, and

How do I get the XML Dom node of where my cursor is in Eclipse?

白昼怎懂夜的黑 提交于 2019-12-20 06:16:47
问题 How do I get the xml dom node and xpath to where my cursor is in an Eclipse custom XML editor that I am building. It is a textEditor. I am implementing IContentAssistProcessor thus far. 回答1: You can get the position of the cursor in the text editor and you can implement an XML reader that stores the locations of the XML nodes using the SAX Locator. For a mouse event, you could then scan the document and find the best matching node. I am not sure how performant this is but this is where I

Override the dependencies added during running a project as an Eclipse Application

可紊 提交于 2019-12-20 05:53:26
问题 I am trying to write a custom launch configuration while running a plugin project as an eclipse application. I have to run the plugin with limited dependencies. Is it possible to override methods in org.eclipse.pde.launching.EclipseApplicationLaunchConfiguration ? If yes then how do I do it ? 回答1: You can't easily override the methods in EclipseApplicationLaunchConfiguration . That would require writing a new launch configuration - probably by using the org.eclipse.debug.core

Bundle JRE with PDE headless build

孤街醉人 提交于 2019-12-13 02:53:11
问题 I have the build script (PDE Headless build) for building the RCP application. And it work's as expected. I have 2 tasks which am not able to close it. Am trying to bundle the JRE along with my RCP application, and i followed the steps provided in this URL. Still am not able to bundle the JRE with my built application. I tried something like this in my build.properties file: root=absolute:c:/java/jre. Where - c:/java/jre is the root directory where my jre resides. has anyone faced this