Analysis, design and production of polymers and composites