A detailed comparison of continuum and valence force field strain calculations in quantum-dot structures is presented with particular emphasis to boundary conditions, their implementation in the finite-element method, and associated implications for electronic states. The first part of this work provides the equation framework for the elastic continuum model including piezoelectric effects in crystal structures as well as detailing the Keating model equations used in the atomistic valence force field calculations. Given the variety of possible structure shapes, a choice of pyramidal, spherical and cubic-dot shapes is made having in mind their pronounced shape differences and practical relevance. In this part boundary conditions are also considered; in particular the relevance of imposing different types of boundary conditions is highlighted and discussed.