Newbie Programmer Question: Outputting Field Data from a custom solver

General discussion about Elmer
Post Reply
Gerrit
Posts: 2
Joined: 17 Mar 2024, 20:57
Antispam: Yes

Newbie Programmer Question: Outputting Field Data from a custom solver

Post by Gerrit »

Hello Everyone,

I am trying to build a simple solver for an university project. I am an utter beginner in Elmer-Solver Programming, and i cant figure out for the life of me how to actually output data, of the solver to be used in ElmerVTK, for example. Can anyone tell me or give me some documentation that goes beyond the manual that tells me how the variable saving actually works? Any help would be greatly appreciated.

Best Regards
Gerrit

my current attempt at understanding this is in the attachments
Attachments
main.f90
(775 Bytes) Downloaded 8 times
Gerrit
Posts: 2
Joined: 17 Mar 2024, 20:57
Antispam: Yes

Re: Newbie Programmer Question: Outputting Field Data from a custom solver

Post by Gerrit »

Nevermind I figured out the problem myself.
I was confused because the f90 code looked good but the problem was with the sif file

this was the section for my solver:

Solver 5
Equation = MyEquation
Procedure = "MySolver" "MySolver"
Variable=Custom Variable
End

which is fine as well but under the equation tab:

Active Solvers(n)

i didnt change the n when adding a new solver. so I got the error:

variable >custom variable< exists but isnt associated with any equation
Post Reply