Scheme of physical system for frequency doubling using cavity. are the incoming tripartite entangled fields and are the three outgoing fields. Type-I SHG takes place in each cavity.