1 Introduction

In recent years, there has been an increase in injuries and diseases associated with bone defects. Thus, there has been urgent demand for natural and artificial synthetic bone grafts in clinical surgery [1, 2]. Artificial synthetic bone grafts are considered an alternative to autologous and allogeneic bone grafts owing to the refined components and structures, unlimited supply, and scarcely any immune rejection [3, 4]. 3D printing technologies are state-of-the-art manufacturing methods for fabricating patient-customized scaffolds for sites of bone grafting [5,6,7,8]. 3D-plotting, otherwise referred to as direct ink writing, is an extrusion-based, layer-by-layer method of fabrication performed at room temperature [6, 9,10,11]. Combined with a cementation process, bone grafting scaffolds can be prepared through 3D-plotting without the requirement for high-temperature sintering, which facilitates the incorporation of thermo-sensitive reagents, such as drugs, proteins, and cells [9, 10].

Calcium phosphate (CaP)-containing materials, such as hydroxyapatite and brushite, have been well studied and served as excellent bone repair materials [6, 12,13,14]. Magnesium phosphate (MgP)-based materials, such as struvite and newberyite, are also hard tissue materials that resemble those found in human kidney stones [15]. Studies including the MgP-containing materials have been concentrated on developing self-setting MgP cements. The field about MgP bone cement is relatively new compared with that of CaP, initiated to overcome the disadvantages of CaP cements, such as its low strength, slow setting time, and poor biodegradability [16]. Studies have demonstrated that MgP bone cements are safe for several applications and have better degradability than CaP bone cement [17,18,19]. Gbureck’s group implanted struvite cement, brushite cement, and calcium deficient hydroxyapatite (CDHA) cement into the femoral condyle of adult merino sheep and the struvite cement had higher porosity and degradability than the CaP cements after 10 months [18]. They also evaluated the degradation rate of the struvite cement and CDHA cement and the new bone growth after their implant into trabecular bone of adult merino sheep [19]. The results showed that the struvite cement was almost completely degraded after 10 months and CDHA cement hardly degraded. In addition the MgP cement resulted in more new bone growth than the CDHA cement. The ceramic MgP family has numerous phases, such as the struvite, struvite-K, schertelite, newberyite, cattiite, bobierrite, and farringtonite [16]. These ceramic MgP phases have different crystal structures, which endows the materials with different physicochemical and biological properties [15, 16].

Up to now, enormous effort has been made to fabricate the CaP and MgP 3D porous scaffolds via 3D-plotting method [20,21,22,23,24,25,26,27]. CaP-based bone implants and scaffolds were first prepared by Lewis’ group via 3D-plotting [20]. Since then, various CaP-based materials, including hydroxyapatite, alpha-tricalcium phosphate (TCP), beta-TCP, and composites of HAp and beta-TCP, have been manufactured into scaffolds using 3D-plotting [21,22,23]. More recently, Yun’s and Park’s groups have employed 3D-plotting combined with cementation chemistry to prepare struvite 3D scaffolds, using self-made farringtonite (Mg3(PO4)2) powder that was prepared via high-temperature calcination as the reactant [24,25,26,27]. This method, however, needs a crushing treatment process to obtain a suitable particle size to meet the extrusion requirements. There is few other reports on MgP phases during the final hardening process.

In this paper, we report the preparation of newberyite (MgHPO4∙3H2O), struvite (MgNH4PO4∙6H2O), and brushite (CaHPO4∙2H2O) 3D porous structures via facile 3D-plotting combined with a two-step cementation process incorporating phosphates through solution immersion. Similar to most MgP cement formulations, magnesium oxide (MgO) was selected as the starting material, and used without high-temperature calcination. The fabricated 3D porous green bodies were immersed in different phosphate aqueous solutions for transformation into MgP- or CaP-based 3D porous scaffolds. Properties, such as porosity, compressive strength, in vitro degradation, and cytotoxicity, were studied in detail.

2 Experimental section

2.1 Fabrication of the scaffolds

All reagents were used without further purification. The fabrication of the porous scaffolds was performed with a homemade 3D-plotting device equipped with a gas-pushed device and a three-axis positioning system. Light MgO was employed as the raw material and 0.15 g/mL pluronic F127 aqueous solution was used as the binder. In a typical fabrication procedure, F127 (3 mL) was introduced into MgO powder (4 g, AR) with manual continuous stirring to form an injectable paste as the ink. The paste was loaded into a syringe that was fitted with a 0.3-mm diameter cylindrical nozzle. The dosing pressure to the syringe was 0.2–0.4 MPa and the speed of the positioning system was 30 mm/s. The fabricated MgO porous green bodies were dried at room temperature overnight. Green bodies were then soaked in phosphate aqueous solution using a two-step procedure. First, the green bodies were immersed in 0.5 mol/L of (NH4)2HPO4 solution for 3 days. The obtained semi-manufactured scaffolds (hereafter, “Sse scaffolds”) were washed with deionized water several times and then immersed in KH2PO4 (1 mol/L), NH4H2PO4 (2 mol/L), and Ca(H2PO4)2 (saturated solution dissolved with H3PO4 1.46 mol/L) phosphate aqueous solutions for 3 d, respectively. The resultant scaffolds are designated as Sk, Sn, and Sc, respectively. The phosphate aqueous solutions were kept fresh via displacement everyday in the period. The complete soaking cementation process was performed at room temperature. Finally, the scaffolds were washed with deionized water several times and then dried in air at 60 °C for 24 h.

2.2 Characterization of the scaffolds

The phases of the scaffolds were characterized by X-ray powder diffraction (XRD) on a powder X-ray diffractometer (Bruker, D8, Germany) with Cu Kα radiation (λ = 1.5406 Å) and recorded in the 2θ range of 10–70°. Scanning electron microscopy (SEM) and energy dispersive spectrometry (EDS) were measured on a scanning electron microanalyzer (Quanta, FEG 250, USA) with an operating voltage of 10 or 15 kV.

2.3 Porosity measurement

The porosity measurement method used in this study was performed as described elsewhere [28]. Porosity of the MgP and CaP scaffolds (10 × 10 × 8 mm) was measured in a specific gravity bottle using ethanol immersion based on Archimedes’ principle. First, scaffolds were dried at 100 °C for 24 h and weighed, and the results recorded as Ws. Next, the bottle was filled with ethanol, weighed, and recorded as W1. The scaffold was immersed in the bottle filled with ethanol and weighed, with the results recorded as W2. Finally, the ethanol-saturated scaffold was taken out from the bottle, and the final weight of the bottle and ethanol was measured as W3. Porosity was calculated as following equation:

$${\mathrm{Porosity}}\,\left( \% \right) = \left[ {\left( {{\mathbf{W}}_{\mathbf{2}} - {\mathbf{W}}_{\mathbf{3}} - {\mathbf{W}}_{\mathbf{s}}} \right)/{\mathbf{\rho }}_{\mathbf{e}}} \right]/\left[ {\left( {{\mathbf{W}}_{\mathbf{1}} - {\mathbf{W}}_{\mathbf{3}}} \right)/{\mathbf{\rho }}_{\mathbf{e}}} \right] \times 100\% ,$$

where (W1 − W3)/ρe is the total volume of the scaffold, including the pores, and (W2 − W3 − Ws)/ρe is the pore volume in the scaffold. Six specimens were tested for each scaffold.

2.4 Mechanical properties

Compressive strength tests were performed in a universal mechanical testing machine (Instron 5960, USA) equipped with a load cell of 20 kN, at a cross-head speed of 0.5 mm/min, until the scaffolds were fractured. The loading direction was perpendicular to the layer-by-layer deposition planes of the scaffolds. Six specimens were tested for each scaffold (10 × 10 × 8 mm).

2.5 Degradation in vitro

To measure scaffold degradation in vitro, scaffolds were soaked in PBS solution (pH 7.4) in plastic centrifuge tubes with the volume to mass ratio of 200 mL/g in a bath shaker at constant temperature (37 °C) and 60 r/min for 1, 2, 3, and 4 weeks. At the end of each period, the PBS solution was refreshed and the weight loss was calculated based on the following equation:

$${\mathrm{Weight}}\,{\mathrm{loss}}\,\left( \% \right) = \left( {{\mathbf{W}}_{\mathbf{0}} - {\mathbf{W}}_{\mathbf{t}}} \right)/{\mathbf{W}}_{\mathbf{0}} \times 100\% {\mathrm{,}}$$

where W0 is the weight of the dried scaffold before degradation and Wt is the weight of the scaffold at the set time point. The pH of the PBS solution was measured and recorded at each time point during the degradation process. Four specimens were tested for each scaffold (10 × 10 × 2 mm).

2.6 In vitro cytotoxicity assay

Cytotoxicity assays using methyl thiazolyl tetrazolium (MTT) were conducted on MC3T3-E1 osteoblast cells (Chinese Academy of Medical Sciences) exposed to extracts of the scaffolds. Scaffolds (10 × 10 × 8 mm) were sterilized by epoxyethane and then placed in tightly capped sterilized centrifuge tubes containing alpha-modified essential media (alpha-MEM) solution at 37 °C for 3 days. The extracts were collected and filtered through a 200-nm microporous membrane for sterilization and to remove small particles. The extracts were then mixed with a final concentration of 10% fetal bovine serum (FBS). The final ratio between the scaffold and the extraction medium was 0.1 g/mL. Extracts were diluted with alpha-MEM supplemented with 10% FBS to 0.1, 0.05, and 0.01 g/mL for tests. MC3T3-E1 osteoblast cells were seeded into 96-well plates at a density of 500 cells per well and grew for 24 h in alpha-MEM supplemented with 10% FBS. Six wells per treatment were prepared. After 24 h, non-attached cells were removed and the media was replaced with 200 μL media containing extracts at various concentrations. Cells were cultured for 1, 3, and 5 days, respectively, with the media refreshed every 2 days. Alpha-MEM supplemented with 10% FBS was used as a blank control.

MTT cell viability assay was used to evaluate the cytotoxicity. MTT reagent (20 μL, 5 mg/mL) was added to each well and incubated for 4 h. Medium was then carefully removed and 150 μL of dimethyl sulfoxide was added to each well and pipetting up and down several times. The 96-well plates were incubated on a rocker shaker for 10 min at room temperature, and the absorbance was then measured at 490 nm on a microplate reader. In previous reports [29, 30], free Mg2+ can lead to false positive or negative results in an MTT assay. Therefore, the reported values were normalized to the background levels for each material. In our study, there were negligible effects from the Mg2+ ions.

2.7 SEM and microscope analysis

MC3T3-E1 osteoblast cells were seeded at a density of 50,000 cells onto 10 × 10 × 2 mm Sk, Sn, and Sc scaffolds housed in 24-well plates, using glass as the control. The morphology changes of MC3T3-E1 osteoblast cells after 3 days in standard culturing conditions were observed by SEM. Cell/scaffold samples were washed thrice with PBS, and fixed with 2.5% glutaraldehyde solution at 4 °C for 4 h. Cells were then dehydrated in a series of graded ethanol solutions (30, 50, 70, 90, 95 and 100 % v/v) for 5 min and dried in vacuum at 50 °C for 72 h. Finally, the samples were sputtered with Au for SEM observation. The cells growth on the glass surface and bottom of the 24-well plates in the case of cell/scaffold samples were observed on an inverted microscope.

2.8 Statistical analysis

Statistical analysis was carried out using one-way ANOVA analysis, followed by Tukey post hoc tests to determine the significance. Values are expressed as the mean ± standard deviation. Statistical analysis was performed with SPSS v22 (Chicago, IL, USA). Statistical significance was set at P < 0.05.

3 Results

3.1 Phases and morphologies of the scaffolds

Figure 1a shows the XRD pattern of the Sse semi-manufactured 3D porous scaffolds before the second immersion step. The major diffraction peaks can be indexed to the hexagonal phase of Mg(OH)2 (JCPDS card No. 07-0239) and the cubic phase of MgO (JCPDS card No. 89-4248). The other weak diffraction peaks at 20.76°, 30.54°, and 32.86° can be indexed to the orthorhombic phase of MgNH4PO4∙6H2O (JCPDS card No. 71-2089). The Sse was then soaked in various phosphates aqueous solutions to obtain fresh porous structures (Fig. 1b–d). The newberyite, struvite, and brushite phases are identified by comparison with data from JCPDS card No. 72-0023 (the orthorhombic phase of MgHPO4∙3H2O), No. 71-2089 (the orthorhombic phase of MgNH4PO4∙6H2O), and No. 72-0713 (the monoclinic phase of CaHPO4∙2H2O). The other diffraction peaks are ascribed to the Mg(OH)2 intermediate formed in the first step cementation process and the unreacted raw MgO. Specially, the (020) diffraction peak at 11.70° for the brushite phase has the extremely strong intensity, which indicates the preferred oriented growth of the {020} crystallographic plane [31].

Fig. 1
figure 1

Powder X-ray diffraction (XRD) patterns of the a Sse (Mg(OH)2/MgO/MgNH4PO4∙6H2O), b Sk (MgHPO4∙3H2O), c Sn (MgNH4PO4∙6H2O), and d Sc (CaHPO4∙2H2O) scaffolds

Figure 2 shows the SEM images of the 3D porous structures and physical parameters of the strut diameters and pore sizes are summarized in Table 1. The deviation in strut diameters and pore sizes may be due to the shake during the 3D-plotting operation. Some smaller pores (10–100 μm) can be seen on the struts of the Sse scaffolds and the surface of the Sse scaffold comprises a collection of irregular polyhedrons in the range of ~1 μm to several micrometers (Fig. 2a, b). After the second immersion step of the cementation process, the Sse scaffolds were transformed into the Sk, Sn, and Sc scaffolds, with which the macroscopic structures were maintained. To a certain extent, the strut diameters and pore sizes changed. The struts of Sk scaffolds are constructed by microscale plates in thickness of about 1.2–5.8 μm (Fig. 2d). Semi-spherical particles (~0.44–0.69 mm), that are formed by microplates in different thickness (3.39–8.91 μm), locate on the struts of the Sk scaffolds and cover some of the pores (Fig. 2c, d inset). The struts of Sn scaffolds are constructed by sub-microscale and microscale polyhedron particles (Fig. 2e, f), while the struts of the Sc scaffolds (Fig. 2g, h) are constructed by microplates in thickness of about 10–20 μm.

Fig. 2
figure 2

Scanning electron microscopy (SEM) images of a, b Sse (Mg(OH)2/MgO/MgNH4PO4∙6H2O), c, d Sk (MgHPO4∙3H2O), e, f Sn (MgNH4PO4∙6H2O), and g, h Sc (CaHPO4∙2H2O) scaffolds

Table 1 Scaffold characteristics and dimensions

Figure 3 shows the SEM images of the down-up internal pore tunnel structure and cross-sections of strut in the four scaffolds, as marked by arrows and circles, respectively. The down-up interconnected pore tunnels (arrows) are visible in all of the scaffolds. The struts of the Sse and Sn scaffold (marked by circles) exhibit a clear circular profile (Fig. 3a, c). For the Sk and Sc scaffolds, semi-spherical particles and microplate particles are found within the internal pore tunnels and these particles partly fill the interlayer pores, respectively (Fig. 3b, d).

Fig. 3
figure 3

SEM images of the internal structures of the a Sse (Mg(OH)2/MgO/MgNH4PO4∙6H2O), b Sk (MgHPO4∙3H2O), c Sn (MgNH4PO4∙6H2O), and d Sc (CaHPO4∙2H2O) scaffolds

Elemental mapping was used to visualize the distribution of the elements in the cementation process. Figure 4 shows the strut morphologies and elemental mappings of the four scaffolds. In the Sse, Sk, and Sn scaffolds, the element Mg distributes inside and outside of the struts (Fig. 4b, e, h); however, in the Sc scaffolds, there is no obvious Mg signal detectable outside the struts (Fig. 4k). The P signals are found mainly at the edges of the struts (Fig. 4c, f, i, l). These results indicate that the phosphate solutions react with the raw materials in the solid-liquid interfaces and the freshly formed phases coating on the surface of the struts hinder the reaction at a greater depth. However, a small amount of element P is still found within the inner of the struts (Fig. 4c, f, i, l). In the Sc scaffolds, a high signal intensity of the element Ca is detected outside the struts (Fig. 4m), which is coincident with the P signal (Fig. 4l).

Fig. 4
figure 4

Cross-sectional morphologies and elemental mappings of the Sse, Sk, Sn, and Sc scaffolds. ac Sse (Mg(OH)2/MgO/MgNH4PO4∙6H2O) scaffolds: a SEM image, b Mg, and c P. df Sk (MgHPO4∙3H2O) scaffolds: d SEM image, e Mg, and f P. gi Sn (MgNH4PO4∙6H2O) scaffolds: g SEM image, h Mg, and i P. jm Sc (CaHPO4∙2H2O) scaffolds: j SEM image, k Mg, l P, and m Ca

Surface elemental mapping of the internal structures of the scaffolds were also measured. On the strut surface of the Sse (Fig. S1 in supporting information (SI)), Sk (Fig. S2 in SI) and Sn (Fig. S3 in SI), Mg, P, and O signals were detected and shown to overlap with each other. On the strut surface of the Sc scaffold, Ca, P, and O signals overlapped, with rather weak but detectable Mg signal detected (Fig. S4 in SI). Combined with the XRD pattern (Fig. 1), the phases of the strut surface can be ascribed to the formation of brushite, with little amount of MgP phase.

3.2 Porosity and mechanical properties of the MgP and CaP scaffolds

Figure 5 shows the porosity of the four scaffolds. Sse has the highest porosity (57.5 ± 3.36%) compared with the scaffolds subjected to the second immersion step, and all the samples show a decrease in porosity (Sk, Sn, and Sc scaffolds had porosity values of 39 ± 2.37%, 55.3 ± 4.69%, and 25.8 ± 3.96%, respectively). Although there is no significant difference between Sse and Sn (P > 0.05), Sc has obviously lower porosity than that of the others (P < 0.05). It is necessary to point out that the porosity values are higher than the original porosity from the printed samples, which can be attributed to the evaporation of crystalline water in MgP and CaP phases under the thermotreatment of the sample to 100 °C. This leads to the change of phase composition and density.

Fig. 5
figure 5

Porosity of the Sse (Mg(OH)2/MgO/MgNH4PO4∙6H2O), Sk (MgHPO4∙3H2O), Sn (MgNH4PO4∙6H2O), and Sc (CaHPO4∙2H2O) scaffolds

Figure 6 shows the compressive strengths of the four scaffolds. Sse scaffolds has the lowest compressive strength (2.4 ± 0.39 MPa), which can be easily crumbled by hand. However, after the second step of the cementation process, the compressive strengths of Sk, Sn, and Sc scaffolds obviously increase to 6.1 ± 0.36, 6.6 ± 1.2, and 11.2 ± 2.6 MPa, respectively, in which Sc has a significantly higher compressive strength compared with the others (P < 0.05). The compressive strength of the MgP and CaP scaffolds matches that of human cancellous bone [1].

Fig. 6
figure 6

Compressive strength of the Sse (Mg(OH)2/MgO/MgNH4PO4∙6H2O), Sk (MgHPO4∙3H2O), Sn (MgNH4PO4∙6H2O), and Sc (CaHPO4∙2H2O) scaffolds

3.3 In vitro degradation and pH values of PBS

Figure 7 shows the in vitro degradation ratios of the scaffolds in PBS after 7, 14, 21, and 28 days at 37 °C. The Sk scaffolds degrade gradually over time, with a weight loss ratio of ~22% over 28 days. The weight ratio of the Sc scaffolds increase slightly to 101 ± 0.54% at 7 d, and then decrease gradually to 91.6 ± 1.86% by 28 days. The weight ratio of the Sn scaffolds increase rapidly to 117.2 ± 0.78% at 7 days, and maintains at slightly higher levels of 122.6 ± 1.1% until 28 days.

Fig. 7
figure 7

In vitro degradation of the Sk (MgHPO4∙3H2O), Sn (MgNH4PO4∙6H2O), and Sc (CaHPO4∙2H2O) scaffolds in PBS at 37 °C for the indicated setting times

The pH of the PBS solutions was measured at each time point. As shown in Fig. 8, an alteration in the pH of PBS from 7.4 to 7.83 (Sk), 9.0 (Sn), and 8.03 (Sc), respectively, induced by Sk, Sn and Sc occurs after 28 days. Although slightly alkaline environments were obtained during the degradation of Sk and Sc, degradation of the Sn led to a much bigger change in the pH, with pH = 10.7 achieved after 7 days, and a pH of about 9 maintained for the remainder of the tests.

Fig. 8
figure 8

Changes in the pH of PBS during in vitro degradation of the Sk (MgHPO4∙3H2O), Sn (MgNH4PO4∙6H2O), and Sc (CaHPO4∙2H2O) scaffolds

The phase change of the Sn scaffold were studied because it showed the abnormal weight increase during in vitro degradation process. Figure 9 shows the XRD pattern of the Sn scaffolds soaked in PBS solution after 28 days. The struvite phase disappeared and new MgP phases were formed. Comparing with data from JCPDS card No. 16-0330, the diffraction peaks at 11° and 12.72° can be indexed to the monoclinic phase of Mg3(PO4)2∙8H2O. A weak and wide diffraction peak around 30° can be ascribed to the MgP amorphous phase [30, 32]. In addition, Mg(OH)2 and the unreacted raw MgO exist in the Sn scaffolds.

Fig. 9
figure 9

Powder X-ray diffraction (XRD) pattern of the Sn (MgNH4PO4∙6H2O) degraded in PBS for 28 days

3.4 In vitro cytotoxicity assay

The MTT assay was used to evaluate the cytotoxicity of the extracts obtained from scaffolds immersed in alpha-MEM for 3 days. As shown in Fig. 10, MC3T3-E1 osteoblast cells show good viability in extracts of Sk, Sn, and Sc scaffolds at various concentrations for 1, 3, and 5 days compared with the blank control group.

Fig. 10
figure 10

MC3T3-E1 osteoblast cells exposed to extracts of the Sk (MgHPO4∙3H2O), Sn (MgNH4PO4∙6H2O), and Sc (CaHPO4∙2H2O) scaffolds at different concentrations for 1, 3 and 5 days

Figure 11 shows SEM images of MC3T3-E1 osteoblast cells attachment on glass, Sk, Sn, and Sc scaffolds. MC3T3-E1 osteoblast cells attach and spread well on the glass, Sk and Sc scaffold surface. However, almost no cells can be observed on the surface of the Sn scaffolds.

Fig. 11
figure 11

SEM images showing the attachment and survival of the MC3T3-E1 osteoblast cells cultured on a glass (as control), b Sk (MgHPO4∙3H2O), c Sn (MgNH4PO4∙6H2O), and d Sc (CaHPO4∙2H2O) scaffold surfaces for 3 days

Inverted microscope images (Fig. S6a, b, and d in SI) shows that MC3T3-E1 osteoblast cells grow well on glass surface and bottom of 24-well plates in the case of newberyite and brushite. Contrarily the dead MC3T3-E1 cells are observed, which the cells became circular in the case of struvite (Fig. S6c in SI). The SEM and inverted microscope images indicate that the newberyite and brushite scaffolds can support the cells and the struvite scaffold cause cytotoxicity.

4 Discussion

In this paper, we report the preparation of newberyite, struvite, and brushite 3D porous scaffolds via a facile 3D-plotting process, employing the light MgO and F127 solution as the raw materials. In most biomedical applications using MgP cement formulations, MgO is used as the starting material [16]. However, MgO was not thermotreated at high-temperature in the present paper. Thus the calcination and crush process were avoided, which could maintain the high chemical activity of the light MgO and achieve a rapid hardness of the material. F127 has good biocompatibility and has been approved by the US FDA as a food additive or in pharmaceuticals [33,34,35]. Light MgO was dispersed into the F127 solution to create an injectable paste ink, from which three goals could be achieved: (1) the paste ink could be extruded fluently because of the small size of the MgO and the excellent rheological properties of the F127 solution [36]; (2) the struts extruded from the cylindrical nozzle had sufficient mechanical strength so that the subsequent stacking process could be conducted continuously, and (3) the green bodies before hardening had sufficient washout resistance to maintain a 3D porous structure when they were immersed into the (NH4)2HPO4 solution (0.5 mol/L) for preliminary hardening.

After preliminary hardening, the resultant Sse scaffold was immersed into various phosphate aqueous solutions to obtain the final 3D porous scaffolds. The profiles and down-up interconnected pore tunnels were maintained in all of the scaffolds (Figs 2 and 3). During this second step, green bodies may dissolve or disintegrate. Loss of 3D structure can be ascribed to the acidity of the phosphate aqueous solutions (Table 2). Indeed, we noted the formation of a small amount of MgNH4PO4∙6H2O on the surface of the struts after the preliminary hardening (Figs 1 and 4b, c), and this formation could retard the scaffolds from corrosion in the acid phosphate aqueous solutions. Yet, the solution used in the preliminary hardening stage was slightly alkaline and MgO did not react well. Most of the MgO disappeared by hydrolysis to yield Mg(OH)2 that formed the main phase of the Sse scaffold and a small amount of MgNH4PO4∙6H2O formed on the surface of the struts (Figs 1 and 4b, c). In most MgP cement formulations prepared from MgO and potassium phosphate salts, the final hardening product is struvite-K in general [37,38,39]. In the present study, however, the formed phase of the Sk scaffolds was newberyite rather than struvite-K when the Sse scaffolds were immersed in KH2PO4 solution (1 mol/L) (Fig. 1), due to the acidity of the KH2PO4 solution (Table 2). The Newberyite phase is stable in KH2PO4 solution with a starting pH of 4.05. Because the KH2PO4 solution was refreshed daily, the cementation process was conducted in a constantly acidic environment, and the newberyite could not further transform into struvite-K [40]. The main phase of Sn was struvite when the Sse scaffolds were immersed in NH4H2PO4 solution (2 mol/L). Although the starting pH of NH4H2PO4 solution is lower than that of the KH2PO4 solution (Table 1), struvite will dominate as a final structure across a wide range of pH values [41]. In addition, the solubility of struvite and newberyite will affect the final phase of the Sn [41]. The newly formed struvite and newberyite phases coated on the surface of the struts and had different microstructures (Figs 2c–f and 4d–i). Compared with the struvite scaffolds constructed by polyhedron particles with wide size distribution from submicron to tens of microns, the newberyite scaffolds was constructed by the microplates possessing more regular morphologies and bigger size (Fig. 2d, f). Based on the previous reports [42,43,44,45,46], the crystal growth of MgNH4PO4∙6H2O and MgHPO4∙3H2O is complex and various factors such as pH, temperature, reactants, ion species and strength, and supersaturation can easily influence the crystal growth process. Hence, the reaction conditions should be controlled precisely.

Table 2 pH values of the phosphate aqueous solutions used in the cementation process

When the Sse scaffolds were immersed in Ca(H2PO4)2 solution (saturated solution dissolved with H3PO4 1.46 mol/L), the main phase of Sc was brushite which was constructed by the microplates with the thickness of 10–20 μm (Fig. 2h). The size of the structural units was bigger than that of the Sk and Sn. The (020) diffraction peak at 11.70° in the XRD pattern (Fig. 1) exhibits the extremely high intensity and the diffraction peak intensity ratio of (020) to (12-1), (040), (14-1) or (121) are higher than that of the standard pattern in JCPDS card No. 72-0713 (the monoclinic phase of CaHPO4∙2H2O). This phenomenon usually corresponded to the plate-like structures, confirmed by the SEM images (Fig. 2g, h) [31]. The XRD pattern and the SEM images indicate the preferred oriented growth of the {020} crystallographic plane, in agreement with the previous report [31]. In order to investigate the transformation process from the primary products Sse to brushite, the time-depend experiments were performed. The Sse scaffolds were immersed in Ca(H2PO4)2 solution for 10, 30 min, 1, 2 h, 1 and 2 days, respectively. As the immersing time prolonged, the diffraction peak intensity of brushite increased rapidly and the diffraction peak of Mg(OH)2 and MgO decreased gradually (Fig. S5 in SI). The MgP phases were undetectable during the whole reaction process, which indicated that little amount of MgP phases were produced (Fig. 1 and Fig. S5 in SI). It is reasonable that the newberyite and Mg3(PO4)2·nH2O phases cannot form precipitates from the Ca(H2PO4)2 solution with a starting pH of 2.32, while the brushite can easily crystallize and stably exit [15, 40, 47]. The Ca, P, and O elemental signals detected on the strut surface overlap with each other and the Mg elemental signal is almost negligible (Fig. S4 in SI). The content of element Mg is ca. 0.2 wt% on the strut surface according to the EDS results. The elemental mappings of the strut cross-section show that Mg mainly distributes inside of the struts where the P signal is very weak (Fig. 4k, i). The results indicate that the element Mg mainly exists in the form of MgO and Mg(OH)2, which is in agreement with the XRD patterns (Fig. 1 and Fig. S5 in SI). It is noted that a particle with the size of ca. 10 μm marked by arrow occurs on the bottom of the SEM image (Fig. S4a in SI). Elemental mappings of the particle show that Mg and O signals are strong. Contrarily, Ca and P signals are weak. It is speculated that the main components of the particle is MgO or Mg(OH)2. The particle might drop from inside of the struts when the scaffolds were sliced, because MgO or Mg(OH)2 hardly appear on the strut surfaces after the second immersion step.

The morphologies, structures, and porosities of the scaffolds can be easily modified by adjusting the parameters of the 3D-plotting process. The large pore size and porosity are benefit for the bone ingrowth and vascularization in the bone repair process. However it is harmful to the mechanical properties of the scaffolds. Therefore the balance between microstructures and mechanical properties is highly required [10]. In this paper, the porosity of the scaffolds was fixed at 60%. The porosity of the Sse scaffolds was about 58%, which was very close to the fixing ratio. We show that the porosities of the scaffolds decrease after the second treatment stage (Fig. 5). The semi-spherical particles present on the Sk scaffold blocked the pores and decreased the final porosity of the material (Figs 2c and 5). However, these semi-spherical particles interrupted the struts, and thereby reduced the compressive strength of the Sk scaffolds (Fig. 6). In comparison, Sc scaffolds exhibited higher compressive strength but lower porosity due to the increase in strut diameter and the slight decrease in the pores size (Figs 5, 6 and Table 1). Compressive strength is also affected by the nature of components and microstructures of the scaffolds. Compared with the Sse scaffolds, the Sn scaffolds had higher compressive strength although they possessed the almost identical porosity. The higher mechanical properties of the Sn scaffolds could be attributed to the more struvite phase coated on the struts surface and interlocking microstructure formed in the hardening and stiffening process [48]. However, the compressive strength of the Sk, Sn and Sc scaffolds matches that of human cancellous bone, which rangs from 2 to 12 MPa and depends on age and location within the body [1, 49].

The in vitro degradation rate is an important property of bone repair scaffolds. Usually, MgP cements have higher dissolution rates than CaP cements. However, there are variations in the solubility of different phases of MgP and CaP. The relative dissolution of cements typically follows struvite < brushite < newberyite [16], which is consistent with the results in our experiments. The Sk scaffolds degraded consistently in PBS over the 28 d. The weight ratios of the Sc scaffolds slightly increased at 7 days, then decreased consistently over the next 3 weeks. In contrast, the weights of the Sn scaffolds increased consistently throughout the experiment, which was contrary to the previous reports [16,17,18,19]. The reason for the increased weight could be ascribed to the unreacted MgO and Mg(OH)2 exiting in the scaffolds (Figs 1 and 4g–i). When the scaffolds were soaked in PBS solution, partial struvite phase on the surface of scaffolds could degrade to form the Mg2+, NH4+, and PO43− (Eq. 1) [41]. The inner MgO was exposed to PBS system and immediately reacted with H2O to form Mg(OH)2 (Eqs. 2, 3) [48]. Abundant H2O promoted the dissolution of Mg(OH)2 to release the Mg2+ and OH which induced the scaffold/PBS system to be alkaline (Eqs. 4, 5) [41, 48, 50]. Mestres reported that the aged-struvite-cement extracts prepared in PBS was alkaline and the pH was about 9.1 [51]. In the present research, the high pH of 10.7 at the first week was attributed to the reaction between MgO and H2O. When the immersing time was prolonged, Mg(OH)2 coating on the surface of the scaffolds prohibited the hydrolysis of MgO. As the PBS solution was refreshed every week, the pH value trended to be constant at ca. 9.0 which was very close to that in the previous report [51]. Mg3(PO4)2·8H2O and MgP amorphous phase were produced according to the XRD pattern of the scaffold soaked in PBS for 4 w (Fig. 9 and Eqs. 6, 7). The combination between the degradation of the MgNH4PO4∙6H2O and generation of Mg(OH)2 and new MgP phases resulted in the scaffolds weight increase. As immersing time was prolonged, the degradation rate and generation rate reached a dynamic equilibrium and the weigh hardly grew. On the other hand, when the newberyite and brushite scaffolds were immersed in the PBS, plenty of H+ were released to neutralize the OH and the scaffolds/PBS system maintained constant pH (Fig. 9 and Eqs. 810).

$${\mathrm{MgNH}}_4{\mathrm{PO}}_4 \cdot 6{\mathrm{H}}_2{\mathrm{O}}\, \to \,{\mathrm{Mg}}^{2 + } + {\mathrm{NH}}_4^ + + {\mathrm{PO}}_4^{3 - } + 6{\mathrm{H}}_2{\mathrm{Os}}$$
(1)
$${\mathrm{MgO}} + {\mathrm{H}}_2{\mathrm{O}} \to {\mathrm{MgOH}}^ + + {\mathrm{OH}}^ -$$
(2)
$${\mathrm{MgOH}}^ + + 2{\mathrm{H}}_2{\mathrm{O}} \to {\mathrm{Mg}}\left( {{\mathrm{OH}}} \right)_2\, + \,{\mathrm{H}}_3{\mathrm{O}}^ +$$
(3)
$${\mathrm{Mg}}\left( {{\mathrm{OH}}} \right)_2 \to {\mathrm{Mg}}\left( {{\mathrm{OH}}} \right)^ + \,+\, {\mathrm{OH}}^ -$$
(4)
$${\mathrm{Mg}}\left( {{\mathrm{OH}}} \right)^ + \to {\mathrm{Mg}}^{2 + } + {\mathrm{OH}}^ -$$
(5)
$$3{\mathrm{Mg}}^{2 + } + 2{\mathrm{PO}}_4^{3 - } + 8{\mathrm{H}}_2{\mathrm{O}} \to {\mathrm{Mg}}_3\left( {{\mathrm{PO}}_4} \right)_2\cdot 8{\mathrm{H}}_2{\mathrm{O}}$$
(6)
$$x{\mathrm{Mg}}^{2 + } + y{\mathrm{PO}}_4^{3 - } + z{\mathrm{H}}_2{\mathrm{O}} \to {\mathrm{Mg}}_x\left( {{\mathrm{PO}}_4} \right)_y\cdot z{\mathrm{H}}_2{\mathrm{O}}$$
(7)
$${\mathrm{MgHPO}}_4 \cdot 3{\mathrm{H}}_2{\mathrm{O}} \to {\mathrm{Mg}}^{2 + } + {\mathrm{HPO}}_4^{2 - } + 3{\mathrm{H}}_2{\mathrm{O}}$$
(8)
$${\mathrm{CaHPO}}_4 \cdot 2{\mathrm{H}}_2{\mathrm{O}} \to {\mathrm{Ca}}^{2 + } + {\mathrm{HPO}}_4^{2 - } + 2{\mathrm{H}}_2{\mathrm{O}}$$
(9)
$${\mathrm{HPO}}_4^{2 - } \to {\mathrm{H}}^ + + {\mathrm{PO}}_4^{3 - }$$
(10)

In the present study, the extracts of Sk, Sn, and Sc scaffolds all showed good cytocompatibility. However, when the cells were seeded onto the scaffolds directly, few cells were viable within 3 days on the Sn scaffolds and all of the cells died on the bottom of the 24-well plates (Fig. 11c and Fig. S6c in SI). This cytotoxicity may be attributed to the high pH of the Sn scaffolds when it degrades (Fig. 8). By comparison, the Sk and Sc scaffolds showed good cytocompatibility with adherent MC3T3-E1 osteoblast cells identified on the surfaces of the scaffolds and the cells on the bottom of 24-well plates grew well (Fig. 11b, d and Fig. S6b, d in SI).

5 Conclusion

In the present paper, 3D porous structures of newberyite (MgHPO4∙3H2O), struvite (MgNH4PO4∙6H2O), and brushite (CaHPO4∙2H2O) ceramic scaffolds were produced via a facile 3D plotting technique combined with cementation. Light MgO was employed as the starting material, and a two-step cementation process transformed the raw material into MgPs and CaPs ceramic scaffolds. The newberyite and brushite scaffolds had good in vitro degradation and cytocompatibility, whereas the struvite scaffold caused cytotoxicity when directly combined with cells in culture, presumably due to the strong alkaline environment produced during its degradation. The experiments results showed that the 3D-plotting technique combined with subsequent cementation process could be used as a general method to fabricate CaP and MgP ceramic scaffolds. These scaffolds have the potential application in hard tissue repair.