Hierarchical Biobased Macroporous/Mesoporous Carbon: Fabrication, Characterization and Electrochemical/Ion Exchange Properties

With the goal of improving the mechanical properties of porous hierarchical carbon, cellulosic fiber fabric was incorporated into the resorcinol/formaldehyde (RF) precursor resins. The composites were carbonized in an inert atmosphere, and the carbonization process was monitored by TGA/MS. The mechanical properties, evaluated by nanoindentation, show an increase in the elastic modulus due to the reinforcing effect of the carbonized fiber fabric. It was found that the adsorption of the RF resin precursor onto the fabric stabilizes its porosity (micro and mesopores) during drying while incorporating macropores. The textural properties are evaluated by N2 adsorption isotherm, which shows a surface area (BET) of 558 m2g−1. The electrochemical properties of the porous carbon are evaluated by cyclic voltammetry (CV), chronocoulometry (CC), and electrochemical impedance spectroscopy (EIS). Specific capacitances (in 1 M H2SO4) of up to 182 Fg−1 (CV) and 160 Fg−1 (EIS) are measured. The potential-driven ion exchange was evaluated using Probe Bean Deflection techniques. It is observed that ions (protons) are expulsed upon oxidation in acid media by the oxidation of hydroquinone moieties present on the carbon surface. In neutral media, when the potential is varied from values negative to positive of the potential of zero charge, cation release, followed by anion insertion, is found.

Due to the high surface tension of water, mesopores can mostly be wet in aqueous solutions, and porous carbon with large mesoporosity presents larger exposed areas than microporous carbons [34].
Several methods can be used to produce porous carbon materials [35]. The conventional way to produce porous carbon from biomass is the carbonization of lignocellulosic biomass (e.g., wood) to produce carbons, followed by activation to produce high surface area materials [36]. The process renders large surface area materials, but usually with a significant degree of microporosity. Those materials are useful for the adsorption of volatile area electrode materials for supercapacitors. Du et al. adsorb a metal-organic framework (ZIF) to create a large surface area of doped N-carbon with the same goal [79].
In the present work, a detailed study of the fiber stabilization method to produce hierarchical (macro/meso/microporous) carbon is carried out. The electrochemical and potential-driven ion exchange properties are also studied. To the best of our knowledge, this is the first study that shows both improvements in the mechanical properties and stabilization of the porosity of the RF resin due to the presence of cellulosic fibers. Moreover, it is shown that carbon fibers, obtained by pre-carbonization of the cellulosic fiber cloths, also stabilize the porosity of the resin during air drying, suggesting that the porosity stabilization by fibers is a general method. Therefore, it could be induced by other organic (e.g., carbon nanotubes) or inorganic (e.g., alumina) fiber mats. This way, a one-step method is designed to obtain mechanically stable and hierarchically porous carbon.

Materials and Methods
All electrochemical experiments were carried out in degassed solutions by extensive N 2 bubbling. Resorcinol (Aldrich, St. Louis, MO, USA, >99.0%) and formaldehyde (Cicarelli, ACS reagent, 37% with 10-15% methanol as stabilizer) were used as reactants without further purification. Sodium carbonate (decahydrate, Aldrich, >99.0%) and cetyl,trimethylammonium bromide (CTAB, Aldrich, >98%) were used as catalyst and stabilizer, respectively. All other chemicals used were of analytical grade, and solutions were prepared with Millipore water. The cellulosic woven fiber fabric is a raw canvas made of crude cotton. The canvas is washed with detergent to remove any additive of the weaving process and then washed with 1% NaOH solution (48 h with stirring) to remove any impurities. Cellophane film was acquired from a local paper retailer and washed with 1% NaOH overnight to remove any impurities.

Resin Synthesis
The viscous prepolymer solution (Resorcinol (R): Formaldehyde(F):Catalyst(Na 2 CO 3 (C))) = 1:2.9:0.005) solution was impregnated onto the cellulosic fabric until saturation, while the fabric was stretched in a wood frame. To cure the resin, the materials are left for 24 h at 70 • C inside a closed glass chamber filled with water saturated atmosphere. Then, the resins were dried in an open oven at 70 • C for 24 h. The weight loss during drying is ca. 45% in weight. The composite consists of an RF resin supported on a woven cellulosic fiber fabric (RF@F).
To produce the composite on a regenerated cellulose film (cellophane) (RF@cp), a thin layer of prepolymer solution was painted on the film's surface and processed in the same way.
To produce the mesoporous resin using a surfactant as a stabilizer of the porosity (RF CTAB ) [49], enough cetyl,trimethylammonium bromide (CTAB) to the polymerization solution to set a molar ratio of CTAB:resorcinol of 0.06:1. The gels were cured inside close Petri dishes. To produce non-porous RF (for comparison), the same mixture (without CTAB) was placed on the petri dishes.

Carbonization
The carbonization of the samples was carried out by carbonization in an electric oven (5 kW). The heating program was adjusted via a LabView script (National Inst.) controlling a PC-1200 AD/DA card. The card reads the temperature of a "K" thermocouple and commands an electronic relay that controls the electric power input to the oven. The samples were set in a ceramic recipient. The resin layers were separated with ceramic macroporous thick (>5 mm) separators, which hold the resin in place, avoiding deformation. On the other hand, the pyrolysis gases could leave the plates through the separators. A nitrogen flow of 0.2 L min −1 was used to maintain the inert atmosphere. The free spaces in the ceramic recipient were filled with purified wood charcoal to act as a sacrificial material in case of oxygen or water contamination. The heating rate used is 40 • C/h from ambient to the pyrolysis temperature. The dry resins are carbonized under a nitrogen stream at 800 • C. The same temperature program was used for all porous carbons produced. The non-porous materials (RF and RF@cp) were carbonized using a slower heating rate (10 • C min −1 ) to allow gas release without breaking. The carbonized materials are denominated c(material) (e.g., c(RF@F)).

Measurement of Surface Area
Porosimetry analysis was done with the Micromeritics ASAP 2000 equipment using N 2 at −196.15 • C. The specific surface area was calculated by the Brunauer, Emmett, and Teller (BET) method, while the pore size distribution was obtained by the Barrett-Joyner-Halenda (BJH) method from the desorption isotherms.

Scanning Electron Microscopy
Images of carbon materials were made with a scanning electron microscope (SEM) Philips 515. Transverse morphology was obtained by fracturing the samples.

Thermal Analysis during Carbonization
Thermogravimetric (TG) analysis was carried out with a TGA 2050 (TA-Instruments, USA). Moreover, volatile products produced during thermal degradation were analyzed by mass spectrometry (MS). For this purpose, a thermogravimetric analyzer was coupled to the mass spectrometer (Thermostar, Balzers, Liechtenstein). Thermal analyses were made using samples of about 10 mg with a flow of air or nitrogen stream of 165 mL/min gas stream and a heating rate of 10 • C min −1 .

Measurement of Mechanical Properties
The nanoindentation measurements were carried out with Nanoindenter XP equipment (MTS Systems, Eden Prairie, MN, USA), with a diamond Berkovich indenter (threesided pyramidal). All measurements were performed at a penetration rate of 50 nm s −1 with a maximum penetration rate of 100 nm. The HIT hardness and EIT modulus calculations were carried out according to ISO 14577 standards, and the projected contact area was calculated according to the Oliver and Pharr method [80]. The hardness and modulus measurements depend on three experimentally measurable values of the F-h curve: the maximum load, P max , the maximum displacement, h max , and the elastic shock stiffness or contact stiffness, S, which is calculated from the slope in the upper portion of the discharge curve. The machine's rigidity and contact stiffness intervene in this parameter. For convenience, the inverse of S is used (compliance C), which has two components: C f , related to the machine, and C s , related to the test sample. Modeled as two springs in a series, their relationship is ∂h ∂P With this value, the contact depth is calculated: If the geometry of the indenter is a three-sided pyramid, the contact area is calculated: Knowing the contact area, the hardness of the material can be calculated: To calculate the modulus of elasticity of the material measured by nanoindentation, E IT , the following Equation is used: called the reduced modulus of elasticity E*, where ρ is the Poisson's ratio of the material and the indenter, respectively. For an indenter of the Berkovich type (three-sided pyramidal) of diamond, the Poisson's ratio is ρ: 0.07, and its module (E) is 1141 GPa. In soft materials such as carbon, this term is comparatively negligible to the modulus of elasticity of the sample. Through the experimental determination of the stiffness S, the value of the reduced modulus of elasticity can be calculated through the Equation Using E*, it is possible to calculate the material's indentation modulus, EIT, by solving it from Equation (5).
For the nanoindentation measurements, the samples were supported on a polymeric resin, and its surface was polished to eliminate all existing imperfections which could generate erroneous measurements in the material.

Cyclic Voltammetry (CV) and Electrochemical Impedance Spectroscopy(EIS)
The electrochemical characterization was carried out in a three-electrode cell using a computerized potentiostat (GAMRY PC4) and CM 300 impedance software. Pieces of carbon aerogel with a geometrical area 5 times the working electrode were used as the counter electrode (CE) while a saturated calomel electrode (SCE) with a saturated NaCl inner solution) was used as the reference electrode (RE). The Electrochemical impedance spectroscopy (EIS) measurements were assessed using a 1 mV voltage amplitude of perturbation of 5 mV and scanning frequencies from 50 kHz to 2.8 mHz. Aerogel (Maketech) pieces were used as counter electrodes. They consist of thin films (ca. 500 µm thickness) with macropores. The BET surface area (measured by nitrogen adsorption) of the aerogels is 700 m 2 g −1 . This larger piece of porous carbon as a counter electrode allows a low current density, which is the precondition for correct electrochemical measurements.
To calculate the specific capacitance (Sp cap in Fg −1 ) from the voltametric current, Equation (7) is used: where i is the voltametric current (A), v is the scan rate (V/s), and m is the mass of the electrode (g). The cyclic voltametric responses of a simple RC circuit were simulated (see Figures S6 and S7 in the Supplementary Materials) using the equations described by Bard and Faulkner [81]. The C corresponds to the double-layer capacitance, and the R is composed of the resistances in series, including the electrical resistance of the carbon electrode, the resistance of the solution, and the mass transports inside the carbon. The calculations were made in Excell 2010 and plotted in Origin 9.

Chronoamperometry (CA)
The CA measurements were made simultaneously with the PBD measurement using an AMEL 2049 Potentiostat controlled by a LabPC AD/DA card under Labview. The chronoamperometry profiles (i-t) were integrated using Origin 9 to obtain the electrochemical charge. Probe Beam Deflection detects the concentration gradient in front of the electrode by measuring the refractive index gradient with a light beam. The beam travels parallel to the surface and suffers a deviation proportional to the concentration gradient. Therefore, it is related to the amount and direction of ion flux. Negative beam deflection (towards the electrode) corresponds to the release of ions from the electrode to the solution, while positive deflection (from the electrode) implies the intake of ions into the electrode. The Probe Beam Deflection arrangement was similar to the one described before [82]. The experimental details are described in the Supplementary Materials.

Fabrication of RF Carbon Supported on Cellulosic Woven Fabric
The viscous prepolymer solution was impregnated onto the cellulosic fabric), until saturation while the fabric was stretched in a wood frame. Then, they are cured, dried, and carbonized (Scheme 1).

Probe Beam Deflection
Probe Beam Deflection detects the concentration gradient in front of the electrode by measuring the refractive index gradient with a light beam. The beam travels parallel to the surface and suffers a deviation proportional to the concentration gradient. Therefore, it is related to the amount and direction of ion flux. Negative beam deflection (towards the electrode) corresponds to the release of ions from the electrode to the solution, while positive deflection (from the electrode) implies the intake of ions into the electrode. The Probe Beam Deflection arrangement was similar to the one described before [82]. The experimental details are described in the SupplementaryMaterials.

Fabrication of RF Carbon Supported on Cellulosic Woven Fabric
The viscous prepolymer solution was impregnated onto the cellulosic fabric), until saturation while the fabric was stretched in a wood frame. Then, they are cured, dried, and carbonized (Scheme 1). Scheme 1. Description of the different steps used to produce a hierarchical porous carbon.
The woven cellulosic fiber carbonizes, forming a carbon cloth with shrinking but retaining its macropores without melting (Figure 1a,b). This is the typical behavior of carbonized cellulose [83]. Visually, it can be seen that the resin decorates the cellulosic fiber ( Figure 1c,d), and the carbon deposit maintains the macroporous woven structure with a non-homogenous deposit of RF, with contraction [84], due to the release of polymer fragments (see Section 3.3.3). The macropores allow the release of the decomposition gases without breaking the material, as happens with monolithic carbons [85]. Therefore, fast heating rates can be used. Since RF resins are widely used as adhesives [86], it is then possible to create multilayer assemblies by adhesion of individual fabric layers. Using the Scheme 1. Description of the different steps used to produce a hierarchical porous carbon.
The woven cellulosic fiber carbonizes, forming a carbon cloth with shrinking but retaining its macropores without melting (Figure 1a,b). This is the typical behavior of carbonized cellulose [83]. Visually, it can be seen that the resin decorates the cellulosic fiber ( Figure 1c,d), and the carbon deposit maintains the macroporous woven structure with a non-homogenous deposit of RF, with contraction [84], due to the release of polymer fragments (see Section 3.3.3). The macropores allow the release of the decomposition gases without breaking the material, as happens with monolithic carbons [85]. Therefore, fast heating rates can be used. Since RF resins are widely used as adhesives [86], it is then possible to create multilayer assemblies by adhesion of individual fabric layers. Using the procedure described in the experimental part, complex shapes, multilayers, and extensive (up to 15 cm dia.) pieces could be easily assembled by the method (Figure 1e,f). procedure described in the experimental part, complex shapes, multilay sive (up to 15 cm dia.) pieces could be easily assembled by the method (Fi

Mechanical Properties
The initial objective of compositing an RF resin with a woven cellulos improvement of the mechanical properties (e.g., elasticity) since glassy car hardness but low elasticity [87]. To test the mechanical properties, nanoin used. In the case of porous materials, the properties will also depend on porosity. Since indentation resistance increases with decreasing porosity increase with the depth of penetration as a result of the densification of th Figure 2 shows the load curves versus displacement (F-h) of composite carbonized mesoporous carbon (c(RFCTAB)). The displacement force be almost complete recovery with some hysteresis between charge and dis elastic-plastic behavior that, in some cases, can produce residual penetra irreversible plastic deformation of the carbon. They all present a similar b the residual plastic deformation is approx. 300 nm. These results would under the conditions used during the tests, the densification of materia specific surface area is not due to their porosity.

Mechanical Properties
The initial objective of compositing an RF resin with a woven cellulosic fiber was the improvement of the mechanical properties (e.g., elasticity) since glassy carbon show high hardness but low elasticity [87]. To test the mechanical properties, nanoindentation was used. In the case of porous materials, the properties will also depend on the material's porosity. Since indentation resistance increases with decreasing porosity, hardness may increase with the depth of penetration as a result of the densification of the material [88]. Figure 2 shows the load curves versus displacement (F-h) of composite (c(RF@F)) and carbonized mesoporous carbon (c(RF CTAB )). The displacement force behavior exhibits almost complete recovery with some hysteresis between charge and discharge. This is elastic-plastic behavior that, in some cases, can produce residual penetration caused by irreversible plastic deformation of the carbon. They all present a similar behavior where the residual plastic deformation is approx. 300 nm. These results would indicate that, under the conditions used during the tests, the densification of materials with a high specific surface area is not due to their porosity. Qualitatively, it can be seen that the carbon made by pyrolysis of mesoporous reinforced with cellulosic fiber is more elastic than the carbon produced from mesop rous RF (RFCTAB). Using the Oliver and Pharr model (Equations (5) and (6) of the expe mental part) [80], it is possible to calculate the values of the elastic modulus and hardne (Table 1). In this case, the contact area was calculated, proposing an elastic model which material pile-up is negligible [80]. The calculated values confirm that the elastic modulus of the composite is larg than that of the porous, not reinforced carbon. This is reasonable as the carbon fiber m trix acts as reinforcement. The hardness of the material is also ca. two times larger. This surprising since the material contains macropores (see Section 3.1) which should redu the overall resistance. However, it seems that the presence of carbon fiber fabric fro cellulose carbonization increases resistance at the nanometric level. The improved m chanical properties are relevant for technological applications of the materials.

Morphology and Textural Properties
Since it was apparent that mechanically stable composites (carbon fabric/RF carbo could be produced, the nanoparticle stabilizing method was applied to add CTAB to t polymerization mixture. As a control, the sample without CTAB was also tested. Su prisingly, both samples show similar textural properties. Qualitatively, it can be seen that the carbon made by pyrolysis of mesoporous RF reinforced with cellulosic fiber is more elastic than the carbon produced from mesoporous RF (RF CTAB ). Using the Oliver and Pharr model (Equations (5) and (6) of the experimental part) [80], it is possible to calculate the values of the elastic modulus and hardness (Table 1). In this case, the contact area was calculated, proposing an elastic model in which material pile-up is negligible [80]. The calculated values confirm that the elastic modulus of the composite is larger than that of the porous, not reinforced carbon. This is reasonable as the carbon fiber matrix acts as reinforcement. The hardness of the material is also ca. two times larger. This is surprising since the material contains macropores (see Section 3.1) which should reduce the overall resistance. However, it seems that the presence of carbon fiber fabric from cellulose carbonization increases resistance at the nanometric level. The improved mechanical properties are relevant for technological applications of the materials.

Morphology and Textural Properties
Since it was apparent that mechanically stable composites (carbon fabric/RF carbon) could be produced, the nanoparticle stabilizing method was applied to add CTAB to the polymerization mixture. As a control, the sample without CTAB was also tested. Surprisingly, both samples show similar textural properties.  (Figure 3f), suggesting that the fabric fiber morphology is maintained the sol-gel, as it has been shown to occur with titania [89]. ls 2023, 16,2101 ized fabric look quite similar (Figure 3e) to the cellulosic fabric c conditions (Figure 3f), suggesting that the fabric fiber morphol sol-gel, as it has been shown to occur with titania [89]. . The macropores arise from the holes in the fabric and Therefore, even if a macroscopically compact fabric is used (e.g., nonbetween fibers would act as macropores. Figure 4a shows the nitrogen adsorption-desorption isotherm adsorption profile shows a high increase which is characteristic o but also, the hysteresis loop formed by the adsorption-desorption of mesopore existence. The loop can be classified as Type H4, slit-like pores [90]. . The macropores arise from the holes in the fabric and the space between fibers. Therefore, even if a macroscopically compact fabric is used (e.g., non-woven fabric), the space between fibers would act as macropores. Figure 4a shows the nitrogen adsorption-desorption isotherms. At low pressure, the adsorption profile shows a high increase which is characteristic of micropore presence, but also, the hysteresis loop formed by the adsorption-desorption isotherms is indicative of mesopore existence. The loop can be classified as Type H4, which is attributed to slit-like pores [90]. The results show that natural fiber with resorcinol-formaldehyde composite forms hierarchical carbon pore structures from different scaffolds. Micrometric millipore allows easy access into the monolith material and bimodal mesopores and micropores that contributes to obtaining a high surface area but remains good accessibility to the nanometric scale. The values are lower than those obtained for activated carbon from cotton (>1000 m 2 g −1 [91]), but the large mesoporosity allows electrolyte penetration and large specific capacitances (see Section 3.3.4).

Textural Properties
Moreover, it can be observed that the hysteresis loop remains open at low pressure. This unusual behavior can be attributed to the natural fiber as a pore former. This produces micropores and a broad range of mesopores. Therefore, a plausible explanation is some pores are not accessible to the N2 gas, which leads to incomplete filling at low relative pressures. A value of 558 m 2 g −1 of specific surface area was calculated from the BET method. Figure 4b shows the pore size distribution calculated using the BJH method. A bimodal pores size distribution can be observed. Large mesopores (10 mm in radius) and a lower size (below 2 nm in radius). The results show that natural fiber with resorcinol-formaldehyde composite forms hierarchical carbon pore structures from different scaffolds. Micrometric millipore allows easy access into the monolith material and bimodal mesopores and micropores that contributes to obtaining a high surface area but remains good accessibility to the nanometric scale. The values are lower than those obtained for activated carbon from cotton (>1000 m 2 g −1 [91]), but the large mesoporosity allows electrolyte penetration and large specific capacitances (see Section 3.3.4).
Moreover, it can be observed that the hysteresis loop remains open at low pressure. This unusual behavior can be attributed to the natural fiber as a pore former. This produces micropores and a broad range of mesopores. Therefore, a plausible explanation is some pores are not accessible to the N 2 gas, which leads to incomplete filling at low relative pressures. A value of 558 m 2 g −1 of specific surface area was calculated from the BET method. Figure 4b shows the pore size distribution calculated using the BJH method. A bimodal pores size distribution can be observed. Large mesopores (10 mm in radius) and a lower size (below 2 nm in radius).

Carbonization Process
The carbonization process of the composite is different from the fabric and RF alone (Figure 5a). The structural formula proposed for the m/z (radical cations = • +) values observed in the thermal decomposition of the composite are [92,93]  As can be seen, the main process occurs below 400 °C (Figure 5a), while some species (methane (16) and acetaldehyde (44)) are still produced at higher temperatures (400-600 °C). The furan-containing fragments (m/z = 82 and 96) (Figure 5b) are likely produced by the pyrolysis of the cellulosic fabric [94]. The signal of the masses m/z: 43 and 60 (<200 °C) are produced by the decomposition of the RF resin and detected at temperatures below 200 °C (Figure 5b). They are attributed to the loss of the methyl ether bridges between the benzene rings of the polymer during its curing process [95].
Further evidence of a different structure is shown during thermal oxidation ( Figure  S1, Supplementary Materials). RFCTAB and RF burn in air, losing most of their mass. On the other hand, the combustion of RF@F reaches a finite mass value indicative of the formation of inorganic ash from the natural fiber. The hierarchical RF resin supported on fabric (RF@F) loses 50% of its mass at 470 °C, while the mesoporous RF, produced in the presence of CTAB, RFCTAB reaches the same threshold at 520 °C. On the other hand, the non-porous RF xerogel losses 50% of its mass only at 580 °C. Therefore, the thermally driven reaction with oxygen follows the order hierarchical > mesoporous > non-porous.

Electrochemical Properties
The composite materials could be used as electrode materials for electrochemical cells.
Small pieces of the material were tested in an aqueous solution (1 M H2SO4) in a conventional three-electrode cell. The cyclic voltammogram ( Figure 6) shows a high double-layer capacitance with a broad wave around ca. 0.35 Vsce. The y-axis is expressed as specific capacitance relating to the scan rate and mass (see experimental part).

Scheme 2.
Structures of the fragments produced during RF-F carbonization.
As can be seen, the main process occurs below 400 • C (Figure 5a), while some species (methane (16) and acetaldehyde (44)) are still produced at higher temperatures (400-600 • C). The furan-containing fragments (m/z = 82 and 96) (Figure 5b) are likely produced by the pyrolysis of the cellulosic fabric [94]. The signal of the masses m/z: 43 and 60 (<200 • C) are produced by the decomposition of the RF resin and detected at temperatures below 200 • C (Figure 5b). They are attributed to the loss of the methyl ether bridges between the benzene rings of the polymer during its curing process [95].
Further evidence of a different structure is shown during thermal oxidation ( Figure S1, Supplementary Materials). RF CTAB and RF burn in air, losing most of their mass. On the other hand, the combustion of RF@F reaches a finite mass value indicative of the formation of inorganic ash from the natural fiber. The hierarchical RF resin supported on fabric (RF@F) loses 50% of its mass at 470 • C, while the mesoporous RF, produced in the presence of CTAB, RF CTAB reaches the same threshold at 520 • C. On the other hand, the non-porous RF xerogel losses 50% of its mass only at 580 • C. Therefore, the thermally driven reaction with oxygen follows the order hierarchical > mesoporous > non-porous.

Electrochemical Properties
The composite materials could be used as electrode materials for electrochemical cells. Small pieces of the material were tested in an aqueous solution (1 M H 2 SO 4 ) in a conventional three-electrode cell. The cyclic voltammogram ( Figure 6) shows a high double-layer capacitance with a broad wave around ca. 0.35 Vsce. The y-axis is expressed as specific capacitance relating to the scan rate and mass (see experimental part). The wave is likely related to the oxidation/reduction of quinone functionalities present on the large carbon surface [96][97][98]. At low scan rates (1 mVs −1 ), maximum specific capacitances of up to 182 Fg −1 are measured. The mean specific capacitance in the whole −1 The wave is likely related to the oxidation/reduction of quinone functionalities present on the large carbon surface [96][97][98]. At low scan rates (1 mVs −1 ), maximum specific capacitances of up to 182 Fg −1 are measured. The mean specific capacitance in the whole potential window is ca. 150 Fg −1 . As can be seen, the CV shape deforms with the scan rate since the current experimental increases ( Figure S5, Supplementary Materials). Such CV can be simulated with a simple RC circuit response ( Figure S6, Supplementary Materials). When the current is divided by the scan rate to obtain the capacitance, the shape of the CV at low scan rates approximates the square response of a purely capacitive (C) electrode, while the shape becomes closer to a purely resistive circuit (R, 45 • line in the CV). Since the electrical conductivity of the composite is ca. 10.2 Scm −1 , and the solution resistivity is below 10 ohms, the resistive component is related to the slow build-up of the double layer inside the porous structure.
A way to measure specific capacitance without dynamic artifacts involves the use of electrochemical impedance spectroscopy (EIS). The Nyquist plot at different potentials ( Figure S4, Supplementary Materials) show nearly constant impedance values (line parallel to the imaginary axis) at low frequency [99]. The specific capacitance (Sp cap ) was at 2.8 mHz when the most surface area of the pores was accessed [100]. Also, it can be observed that the specific capacitance ( Figure 7) depends on the electrode potential, showing a maximum value of ca. 160 Fg −1 at 0.25 Vsce. The shape of the Sp cap vs. Electrode Potential curve is similar to that observed for c(RF PDAMAC ) [44], with a maximum value at the mean redox potential of the quinone moieties present in the porous carbon surface. It is noteworthy that covering the fabric with RF resin which contains a CTAB (RFCTAB@F), renders a carbon with a similar EIS response. However, similar curve but with a maximum specific capacitance of ca. 130 Fg −1 (ca. 20% lower) (Figure 7). The result suggests that the porosity stabilization by the fiber is not due to some soluble component remaining on the fabric.
An important question is which is the mechanism of templating or of the RF gel stabilization by the fabric. It is well known that carbonized cellulosic fibers could be activated to produce large surface areas that are used to store charge [101]. But the carbon fabric here has not been activated. Indeed, the CV of the carbonized fabric alone ( Figure  8a) shows a different voltametric response which seems related to hydrogen storage in the micropores [102] and/or proton retention inside the micropores [103]. It is noteworthy that covering the fabric with RF resin which contains a CTAB (RF CTAB @F), renders a carbon with a similar EIS response. However, similar curve but with a maximum specific capacitance of ca. 130 Fg −1 (ca. 20% lower) (Figure 7). The result suggests that the porosity stabilization by the fiber is not due to some soluble component remaining on the fabric.
An important question is which is the mechanism of templating or of the RF gel stabilization by the fabric. It is well known that carbonized cellulosic fibers could be activated to produce large surface areas that are used to store charge [101]. But the carbon fabric here has not been activated. Indeed, the CV of the carbonized fabric alone (Figure 8a) shows a different voltametric response which seems related to hydrogen storage in the micropores [102] and/or proton retention inside the micropores [103]. It could be envisaged that the hydrophilic chains of cellulose stabilize the gel upon drying and maintain the large porosity. To test that idea, RF resin was absorbed on a non-fibrous cellulose regenerated film (cellophane) and then carbonized. The carbon film shows a CV profile resembling the one obtained with the carbonized fabric alone (Figure  8a), suggesting that cellulose fibers can stabilize the porosity, but cellulose chains in a film do not produce the same effect.
Moreover, when a prepolymer resin of phenol-formaldehyde resin is adsorbed on the cellulosic fabric and then, carbonized, the electrochemical response of the composite carbon (c(PF@F), Figure S3, SupplementaryMaterials) shows a similar CV than those depicted in Figure 8a. It is known that phenol-formaldehyde forms a non-porous resin that It could be envisaged that the hydrophilic chains of cellulose stabilize the gel upon drying and maintain the large porosity. To test that idea, RF resin was absorbed on a nonfibrous cellulose regenerated film (cellophane) and then carbonized. The carbon film shows a CV profile resembling the one obtained with the carbonized fabric alone (Figure 8a), suggesting that cellulose fibers can stabilize the porosity, but cellulose chains in a film do not produce the same effect.
Moreover, when a prepolymer resin of phenol-formaldehyde resin is adsorbed on the cellulosic fabric and then, carbonized, the electrochemical response of the composite carbon (c(PF@F), Figure S3, Supplementary Materials) shows a similar CV than those depicted in Figure 8a. It is known that phenol-formaldehyde forms a non-porous resin that renders compact glassy carbon [104]. Accordingly, the textural properties of c(F), c(RF@cp), and c(PF@F) show surface areas below 1 m 2 g −1 .
However, it could be envisaged that both fibers and hydrophilic surfaces are necessary. There, the electrochemical properties of a carbon material are produced by the adsorption of RF resin on carbonized fabric, followed by carbonization of the composite c(RF@CF). The cyclic voltammetry (Figure 8b) shows a broad wave with a maximum specific capacitance of more than 150 Fg −1 . This behavior is quite similar to that observed with carbonized RF resin adsorbed onto cellulosic fabric (c(RF@F)) ( Figure 6, at a slow scan rate (1 mVs −1 )). It seems that the hydrophilicity of the cellulose is not necessary to stabilize the porous RF gel since carbonized cellulose surfaces are quite hydrophobic. The results are significant because it suggests that other fibers could produce a templating or stabilizing effect similar to the fabric. Therefore, the stabilizing effect of RF gel porosity seems to be a physical effect due to gel (RF but not FF) adsorption on fibers.
A comparison with similar materials ( Table 2) suggests that the specific capacitance of the material, while not the highest, is in the order of materials produced using cationic surfactants or cationic polyelectrolytes as stabilizers for the RF porosity during drying. Moreover, even nitrogen-doped and activated carbon materials [105], having ca. five times the surface area (2631 vs. 558 m 2 g −1 ), show a specific capacitance (227 Fg −1 ) in the same range (ca. 25% bigger) than that measured in c(RF@CF) (182 Fg −1 ). However, the material shows better mechanical properties than fragile compact materials. No stabilizing additive [56] is necessary to produce the porous precursor resin. Moreover, no activation [105] or template removal [51] steps are required to produce the porous carbon.
An important question is the nature of ions used to compensate for the charge stored in the porous matrix. To shed light on the issue, we used Probe Beam Deflection techniques [106].

Potential Driven Ion Exchange
The ion fluxes occur when the potential is changed relevant for applications, such as supercapacitors. An electrode that exchanges a single ion (e.g., protons) allows for building "rocking chair" supercapacitors [107], where the same ion travels from one electrode to the other during charge or discharge. In that way, a low volume of solvent is required to dissolve the electrolyte, improving the overall specific capacitance and power.

Acid Media
Using Probe Beam Deflection (PBD) [106], it is possible to ascertain the ion fluxes outside the carbon electrodes. The CV and PVD responses of a c(RF@F) electrode in acid are shown in Figure 9. required to dissolve the electrolyte, improving the overall specific capacitance and power.

Acid Media
Using Probe Beam Deflection (PBD) [106], it is possible to ascertain the ion fluxes outside the carbon electrodes. The CV and PVD responses of a c(RF@F) electrode in acid are shown in Figure 9. The PBD signal (Figure 9, grey line) is negative during the anodic scan and positive during the cathodic scan. The sign of the signal agrees with a mechanism where ions are expulsed from the carbon during the anodic scan while ions are inserted in the cathodic scan. The PBD profile observed here is likely to be dominated by the pseudocapacitance, which is the oxidation/reduction of quinone-like functionalities on the carbon surface (Scheme 3): The measured ion exchange is likely related to the proton release/intake and the oxidation/reduction of quinone moieties on the porous carbon surface (Scheme 2). This reaction has been observed in electrochemically oxidized glassy carbon, giving rise to a PBD profile similar to the one depicted in Figure 9 [108]. The PBD signal (Figure 9, grey line) is negative during the anodic scan and positive during the cathodic scan. The sign of the signal agrees with a mechanism where ions are expulsed from the carbon during the anodic scan while ions are inserted in the cathodic scan. The PBD profile observed here is likely to be dominated by the pseudocapacitance, which is the oxidation/reduction of quinone-like functionalities on the carbon surface (Scheme 3):

Neutral Media
Materials 2023, 16,2101 17 of 25 required to dissolve the electrolyte, improving the overall specific capacitance and power.

Acid Media
Using Probe Beam Deflection (PBD) [106], it is possible to ascertain the ion fluxes outside the carbon electrodes. The CV and PVD responses of a c(RF@F) electrode in acid are shown in Figure 9. The PBD signal (Figure 9, grey line) is negative during the anodic scan and positive during the cathodic scan. The sign of the signal agrees with a mechanism where ions are expulsed from the carbon during the anodic scan while ions are inserted in the cathodic scan. The PBD profile observed here is likely to be dominated by the pseudocapacitance, which is the oxidation/reduction of quinone-like functionalities on the carbon surface (Scheme 3): The measured ion exchange is likely related to the proton release/intake and the oxidation/reduction of quinone moieties on the porous carbon surface (Scheme 2). This reaction has been observed in electrochemically oxidized glassy carbon, giving rise to a PBD profile similar to the one depicted in Figure 9 [108]. The measured ion exchange is likely related to the proton release/intake and the oxidation/reduction of quinone moieties on the porous carbon surface (Scheme 2). This reaction has been observed in electrochemically oxidized glassy carbon, giving rise to a PBD profile similar to the one depicted in Figure 9 [108].

Neutral Media
A different behavior is observed when a neutral electrolyte (KNO 3 ) is used. The CV does not show the wave related to hydroquinones/quinones redox reactions but a skewed double-layer response (see the simulation in Supplementary Materials, Figure S6). The deflectometry signal is positive during the anodic scan and negative during the cathodic scan ( Figure 10). A different behavior is observed when a neutral electrolyte (KNO3) is used. The CV does not show the wave related to hydroquinones/quinones redox reactions but a skewed double-layer response (see the simulation in SupplementaryMaterials, Figure  S6). The deflectometry signal is positive during the anodic scan and negative during the cathodic scan ( Figure 10). This is indicative of ion insertion during the anodic scan and ion expulsion during the cathodic scan. Such behavior is related to the charging/discharging of the double layer at potentials positive to the potential of zero charge [99]. Moreover, a weak counter flux is observed at potentials below 0.1 Vsce (Figure 10). This suggests that the pzc is around 0.1 Vsce, and a counter flux is present at a potential more negative than the pzc. The PBD signal is similar to the one observed with c(RFPDAMAC) electrodes in the same electrolyte [52].
While cyclic voltadeflectometry gives qualitative information on the ion flux, a quantitative signal analysis requires digital simulation [109]. On the other hand, the chronodeflectometry (PBD signal monitored during the potential is stepped between two different potentials) has an analytical form for defined cases [110]. As can be seen in Figure S8 (SupplementaryMaterials), the chronodeflectometric data obtained with the c(RF@F) electrode in 1 M KNO3 could be fitted well with the profile of a discontinuous process [99]. That is, all ions by the electrode are exchanged during the initial period of the potential step because the film is diffusionally thin. This is reasonable as the hierarchical structure is made of a thin layer of mesoporous carbon supported by a macroporous carbon fiber fabric. Since the ion flux is monitored at a distance of the electrode/solution interface (>50 μm), the local concentration gradients of the fibers collapse into a planar diffusion gradient. The electrode potential is incremented by steps 50 mV, from 0.4 V to −0.15 VSCE, while the current and PBD signal is monitored. The charge exchanged during each pulse, ratioed by the potential step, gives the capacitance as a function of electrode potential (Figure 11a). A parabolic shape with a minimum at ca. 0.05 Vsce is found. The profile is similar to that observed for carbon aerogels [99] and agrees qualitatively with the potential dependence of charge predicted by the Gouy-Chapman-Stern model of double layer [111], with a potential of zero charge (pzc) of ca. 0.05 Vsce. This is indicative of ion insertion during the anodic scan and ion expulsion during the cathodic scan. Such behavior is related to the charging/discharging of the double layer at potentials positive to the potential of zero charge [99]. Moreover, a weak counter flux is observed at potentials below 0.1 Vsce (Figure 10). This suggests that the pzc is around 0.1 Vsce, and a counter flux is present at a potential more negative than the pzc. The PBD signal is similar to the one observed with c(RF PDAMAC ) electrodes in the same electrolyte [52].
While cyclic voltadeflectometry gives qualitative information on the ion flux, a quantitative signal analysis requires digital simulation [109]. On the other hand, the chronodeflectometry (PBD signal monitored during the potential is stepped between two different potentials) has an analytical form for defined cases [110]. As can be seen in Figure S8 (Supplementary Materials), the chronodeflectometric data obtained with the c(RF@F) electrode in 1 M KNO 3 could be fitted well with the profile of a discontinuous process [99]. That is, all ions by the electrode are exchanged during the initial period of the potential step because the film is diffusionally thin. This is reasonable as the hierarchical structure is made of a thin layer of mesoporous carbon supported by a macroporous carbon fiber fabric. Since the ion flux is monitored at a distance of the electrode/solution interface (>50 µm), the local concentration gradients of the fibers collapse into a planar diffusion gradient. The electrode potential is incremented by steps 50 mV, from 0.4 V to −0.15 V SCE , while the current and PBD signal is monitored. The charge exchanged during each pulse, ratioed by the potential step, gives the capacitance as a function of electrode potential (Figure 11a). A parabolic shape with a minimum at ca. 0.05 Vsce is found. The profile is similar to that observed for carbon aerogels [99] and agrees qualitatively with the potential dependence of charge predicted by the Gouy-Chapman-Stern model of double layer [111], with a potential of zero charge (pzc) of ca. 0.05 Vsce.  The quinone groups remain unchanged since the first reduction potential of quinone moieties in neutral media is below −0.3 VSCE [112]. Unlike the potential-driven ion exchange in acid, two different ions (anion and cation) are moving in a neutral (KNO3) solution. Therefore, it could not be used in "rocking chair" capacitors. However, the potential-driven ion exchange in neutral media could be applied in capacitive desalination devices [113] or ion-driven mechanical actuators [114].

Conclusions
It is possible to produce hierarchical (macro/meso/microporous) composite dry gels by adsorbing resorcinol-formaldehyde prepolymer on fiber fabrics. The presence of the fibers physically stabilizes the wet RF gel porous structure, avoiding pore collapse. The effect does not seem related to the chemical properties of cellulose since carbonized fibers also stabilize the porous RF gel during drying. Moreover, films of regenerated cellulose which do not contain fibers are unable to stabilize the RF gel and produce microporous gels.
The dried (in air) composite resin is pyrolyzed to give a carbon-carbon composite. The carbonization is monitored by TGA-MS, and volatile fragments produced from the cellulose and resin are detected. The presence of the fibers decreases the carbonization temperature.
The mechanical properties studied by nanoindentation are affected by the presence of the fiber matrix. Both the elastic modulus and hardness of the composite (c(RF@F)) are higher than those of a similar porous material (c(RFCTAB)) which does not contain fabric reinforcement. Therefore, the fiber-reinforced material has better mechanical properties than similar porous carbon.
The textural properties, measured by N2 adsorption/desorption isotherms, show a surface area of more than 550 m 2 g −1 , with a significant portion of the surface areas as mesopores. The electrochemical properties were studied by cyclic voltammetry (CV), chronoamperometry/chronocoulometry (CA/CC), and electrochemical impedance spectroscopy (EIS). A maximum specific capacitance, in acid media, of 182 Fg −1 is measured by CV at a scan rate of 1 mVs −1 , while a maximum capacitance of 160 F g −1 is measured by EIS at 2.8 mHz.
The effect of potential on the ion exchange was measured using the Probe Beam Deflection technique. In acid media, ion expulsion is observed in anodic scans, with ion insertion in the cathodic scan. The ion fluxes seem dominated by the proton exchange of the quinone moieties (pseudocapacitance) present in the porous surface. On the other hand, PBD signals due to two different ion fluxes are observed in neutral media. At electrode potentials more positive than a threshold potential (ca. 0.05 VSCE), ions are expelled during cathodic steps, while at potentials more negative, ions are inserted in the porous carbon during cathodic pulses. The capacitance shows a parabolic dependence with the potential of zero charge (pzc). The ion population change, measured by chronodeflectiometry, shows a maximum at the pzc. The observed potential-driven ion The quinone groups remain unchanged since the first reduction potential of quinone moieties in neutral media is below −0.3 V SCE [112]. Unlike the potential-driven ion exchange in acid, two different ions (anion and cation) are moving in a neutral (KNO 3 ) solution. Therefore, it could not be used in "rocking chair" capacitors. However, the potential-driven ion exchange in neutral media could be applied in capacitive desalination devices [113] or ion-driven mechanical actuators [114].

Conclusions
It is possible to produce hierarchical (macro/meso/microporous) composite dry gels by adsorbing resorcinol-formaldehyde prepolymer on fiber fabrics. The presence of the fibers physically stabilizes the wet RF gel porous structure, avoiding pore collapse. The effect does not seem related to the chemical properties of cellulose since carbonized fibers also stabilize the porous RF gel during drying. Moreover, films of regenerated cellulose which do not contain fibers are unable to stabilize the RF gel and produce microporous gels.
The dried (in air) composite resin is pyrolyzed to give a carbon-carbon composite. The carbonization is monitored by TGA-MS, and volatile fragments produced from the cellulose and resin are detected. The presence of the fibers decreases the carbonization temperature.
The mechanical properties studied by nanoindentation are affected by the presence of the fiber matrix. Both the elastic modulus and hardness of the composite (c(RF@F)) are higher than those of a similar porous material (c(RF CTAB )) which does not contain fabric reinforcement. Therefore, the fiber-reinforced material has better mechanical properties than similar porous carbon.
The textural properties, measured by N 2 adsorption/desorption isotherms, show a surface area of more than 550 m 2 g −1 , with a significant portion of the surface areas as mesopores. The electrochemical properties were studied by cyclic voltammetry (CV), chronoamperometry/chronocoulometry (CA/CC), and electrochemical impedance spectroscopy (EIS). A maximum specific capacitance, in acid media, of 182 Fg −1 is measured by CV at a scan rate of 1 mVs −1 , while a maximum capacitance of 160 F g −1 is measured by EIS at 2.8 mHz.
The effect of potential on the ion exchange was measured using the Probe Beam Deflection technique. In acid media, ion expulsion is observed in anodic scans, with ion insertion in the cathodic scan. The ion fluxes seem dominated by the proton exchange of the quinone moieties (pseudocapacitance) present in the porous surface. On the other hand, PBD signals due to two different ion fluxes are observed in neutral media. At electrode potentials more positive than a threshold potential (ca. 0.05 V SCE ), ions are expelled during cathodic steps, while at potentials more negative, ions are inserted in the porous carbon during cathodic pulses. The capacitance shows a parabolic dependence with the potential of zero charge (pzc). The ion population change, measured by chronodeflectiometry, shows a maximum at the pzc. The observed potential-driven ion exchange supports their use in desalination devices or ion-based electromechanical actuators.