Can we include a class or mathematical representation of a class coded in Python on a research paper/case study in field of energy
The comment about pseudocode was correct.
Here's one example of how to pseudocode an iterative algorithm without going into a lot of implementation details.
Here's another example from a well known iterative algorithm
I've seen other styles that are just as good - whatever you're comfortable writing that someone who's never seen your algorithm can understand is fine.