Molnir is a structure modeling algorithm that takes loop structural invariant (and partial-variant) stems and classifies canonical structures using the stems as a template. A genetic algorithm selects between combinations of loops to produce the final structure, with a fitness function calculated from built-in sequence and structure based tools.