Manually adding equations

General discussion about Elmer
Post Reply
Dante
Posts: 2
Joined: 13 Sep 2023, 14:28
Antispam: Yes

Manually adding equations

Post by Dante »

Greeting everyone.

I am new to Elmer and I wanted to use to solve a cell growth model I have developed.
As you understand, I would like to use Elmer to solve a custom model and not something found in its libraries.
Is it possible to manually add the equations necessary?

Thank you in advance.
raback
Site Admin
Posts: 4832
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Manually adding equations

Post by raback »

Hi

Sure, write a model and compile it.

Code: Select all

elmerf90 -o MySolver.so MySolver.F90 
then use it in .sif file:

Code: Select all

Procedure = "MySolver" "MySolver"
This is the loaded dynamically at run-time. All the ~130 models under $ELMERSRC/fem/src/modules are in fact also used in same fashion but are just readily compiled.

It is a high likelyhood that at least one-component equations would be easily modified from some ModelPDE which is a generic advection-diffusion-reaction equation, steady or transient, parallel or serial, Lagrange or p-elements.

If you want to have a GUI for your own solver you need to write a special XML file defining the menu choices.

Btw, under fem/examples/turing there is a solver for Turing patterns of theoretical biology. Probably not related...

-Peter
Dante
Posts: 2
Joined: 13 Sep 2023, 14:28
Antispam: Yes

Re: Manually adding equations

Post by Dante »

Thank you very much for the information.

I will try to compile the model based on your guidance and I will get back to you with the results.
Post Reply