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
Newbie Programmer Question: Outputting Field Data from a custom solver
Newbie Programmer Question: Outputting Field Data from a custom solver
- Attachments
-
- main.f90
- (775 Bytes) Downloaded 11 times
Re: Newbie Programmer Question: Outputting Field Data from a custom solver
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
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