Production cross-sections of prompt charm mesons are measured using data from $pp$ collisions at the LHC at a centre-of-mass energy of $5\,$TeV. The data sample corresponds to an integrated luminosity of $8.60\pm0.33\,$pb$^{-1}$ collected by the LHCb experiment. The production cross-sections of $D^0$, $D^+$, $D_s^+$, and $D^{*+}$ mesons are measured in bins of charm meson transverse momentum, $p_{\text{T}}$, and rapidity, $y$. They cover the rapidity range $2.0<y<4.5$ and transverse momentum ranges $0 < p_{\text{T}} < 10\, \text{GeV}/c$ for $D^0$ and $D^+$ and $1 < p_{\text{T}} < 10\, \text{GeV}/c$ for $D_s^+$ and $D^{*+}$ mesons. The inclusive cross-sections for the four mesons, including charge-conjugate states, within the range of $1 < p_{\text{T}} < 8\, \text{GeV}/c$ are determined to be \sigma(pp\rightarrow D^0 X) = 1004 \pm 3 \pm 54\,\mu\text{b} \sigma(pp\rightarrow D^+ X) = 402 \pm 2 \pm 30\,\mu\text{b} \sigma(pp\rightarrow D_s^+ X) = 170 \pm 4 \pm 16\,\mu\text{b} \sigma(pp\rightarrow D^{*+} X)= 421 \pm 5 \pm 36\,\mu\text{b} where the uncertainties are statistical and systematic, respectively.
The production of $D^{*\pm}$, $D^\pm$ and $D_s^\pm$ charmed mesons has been measured with the ATLAS detector in $pp$ collisions at $\sqrt{s}=7$ TeV at the LHC, using data corresponding to an integrated luminosity of $280\,$nb$^{-1}$. The charmed mesons have been reconstructed in the range of transverse momentum $3.5<p_{\rm T}(D)<100$ GeV and pseudorapidity $|\eta(D)|<2.1$. The differential cross sections as a function of transverse momentum and pseudorapidity were measured for $D^{*\pm}$ and $D^\pm$ production. The next-to-leading-order QCD predictions are consistent with the data in the visible kinematic region within the large theoretical uncertainties. Using the visible $D$ cross sections and an extrapolation to the full kinematic phase space, the strangeness-suppression factor in charm fragmentation, the fraction of charged non-strange $D$ mesons produced in a vector state, and the total cross section of charm production at $\sqrt{s}=7$ TeV were derived.