interface helper for write cdf model file