Representation of infinite domains in fem computations