16
Looking at this perfectly running underlying code on the screen, Lin Ye leaned back in his chair with satisfaction.
It could be said that this set of algorithms brought his formidable mathematical abilities and computer programming skills to the ultimate extreme.
First and foremost, to solve the microscopic chatter problem generated during multi-axis linkage cutting of complex curved surfaces, Lin Ye adopted a mathematical technique combining high-dimensional Lie Group manifold mapping with nonlinear Partial Differential Equations dynamics compensation.
With the blessing of this algorithm, the system could precisely predict the stress rebound brought by the nonlinear curved surface one microsecond before the machine tool cutter contacted the material, and then instantly generate completely reverse torque data to send to the servo motor, absolutely canceling out the vibration on the physical level.
Although this logic sounded very simple, to build a mathematical model capable of predicting that kind of stress rebound and generating the corresponding torque data—right now in the entire world, perhaps only Lin Ye could do this.
During this process, his Equation-Physics Horizon talent played a very crucial role.
Of course, the work completed by Lin Ye was not limited to just this.
In more than half a month of systematic study, he also relied on his powerful memory and top-tier logical analysis capabilities to thoroughly figure out the underlying architecture of Kede CNC's customized version of the N60 system.
Thus, during this process, he discovered that although this system already represented the highest level of domestic military-grade machine tools, there was still some conservative redundant code in data caching and the invocation of interpolation instructions.
Since he had already cut open the underlying layer, Lin Ye simply went ahead and made an optimization.
He introduced the Inverse Fast Fourier Transform algorithm, rewrote the spindle's dynamic feedforward compensation logic, and drastically reduced the communication latency between the system and the servo driver.
According to his estimation, after flashing this new algorithm, this T-1 machine tool would not only be able to perfectly carve piezoelectric topological structures, but its overall interpolation response speed and comprehensive machining precision could even be forcibly raised by another order of magnitude on top of the original top-tier configuration!
"All done."
Lin Ye packaged the compiled algorithm package into an encryption disk, casually picked up his phone, and sent a message to Shen Ming.
"The algorithm is done. Get ready, let's gather at the workshop."
After sending the message, Lin Ye picked up his things, pushed open the door and left the apartment, walking straight in the direction of the School of Engineering.
...
A dozen minutes later, Lin Ye swiped open the access control of the heavy machinery processing workshop.
Shen Ming was already wearing an anti-static suit, waiting early in front of the machine tool's control terminal.
As soon as he saw Lin Ye come in, Shen Ming directly greeted him, the expression on his face looking like he had seen a ghost: "Brother Lin! You aren't joking, are you? You really got it done?!"
Pointing at the time displayed on the computer, Shen Ming said with a face full of disbelief: "Today is only the twentieth-something of September, National Day hasn't even arrived yet! Originally, I estimated in my heart that for this level of underlying reconstruction, at the very least you would wait until after the National Day holiday ended to produce a first version. Your efficiency is simply freakish!"
"Alright, stop shouting and making a fuss here."
Lin Ye tossed the disk to Shen Ming, walked forward with a smile, "Don't be in a rush to be shocked yet; export the code and take a look, and confirm whether the interfaces match."
Shen Ming flurriedly caught the disk, plugged it into the computer, and quickly extracted and opened the code engineering files written by Lin Ye.
As rows of code unfolded on the screen, the expression on Shen Ming's face began to undergo dramatic changes.
At the very beginning, he could barely keep up the rhythm, understanding the basic logic concerning machine tool API calls, but as the mouse continued to scroll down, entering the core compensation algorithm area, Shen Ming's brows gradually knitted into a dead knot.
"Brother Lin, th-... what is going on with this loop structure?" Shen Ming pointed at a piece of code on the screen that exceeded his scope of understanding, his head full of fog, "Processing the feedback data of five servo axes in this place, how come you didn't even write a nested condition and directly output the compensation value? This logic isn't right!"
Lin Ye leaned over to glance at it, and explained casually: "Oh, there I used a high-order tensor dimensionality reduction matrix to map the linear data of the five axes into a Lie Group topological space, and performed an instantaneous partial differential equation inverse derivation. This way, there is no need to go through traditional exhaustive judgment; it directly reaches the result in one step, which can save nanosecond-level latency."
Shen Ming: "..."
Looking at Shen Ming's dull expression as if he were listening to alien languages, Lin Ye patiently broke down that mathematical technique and explained it to him once more.
However, even though Lin Ye's explanation was already colloquial enough, the confusion in Shen Ming's eyes did not fade by even half.
"Who am I?"
"Where am I?"
"What am I listening to?"
That kind of technique coming from a world-top mathematician was simply an insurmountable chasm of intelligence for an applied engineering student like him.
However, even though he couldn't understand the core mathematical operators,
as a veteran, the beauty of this code at the computer level was something he could see clearly.
Shen Ming forcefully skipped those heavenly-book parts and continued reading downwards. Soon, he discovered the optimization modifications that Lin Ye had casually made to the N60 system.
This time, Shen Ming was completely numbed by shock.
"Holy crap... Brother Lin, you cut the buffer pool of the underlying data bus by two-thirds? How did you think of this? You actually managed to compress the data throughput latency to this extent?!"
Shen Ming stared fixedly at the screen, his mouth continuously making sounds of drawing in cold air.
He had never thought before that Lin Ye was not only a monster in theoretical mathematics, but could actually write program code to such an acme of perfection.
The parts he could understand—the algorithmic logic written by Lin Ye was, in his eyes, simply the purest genius conception without any redundant variables. Every line of code seemed to have been forged through a thousand trials, streamlined to a degree of perfection where even a veteran like him didn't know how to optimize a single punctuation mark.
"Brother Lin, I am completely convinced..."
Shen Ming raised his head from in front of the screen, and the look in his eyes towards Lin Ye could no longer be described as admiration; it was simply fanaticism. "Just based on this hand of yours at underlying algorithms and programming skills, researching computers alone, in the future you might easily bring back a Turing Award."
"At that time, you can directly found a Lin Class in our Peking University, directly going head-to-head with Tsinghua University's Yao Class!"
Hearing Shen Ming's increasingly outrageous flattery, Lin Ye couldn't help but be between laughter and tears.
"Alright, how did this drift further and further off-topic."
Lin Ye scolded with a smile and slapped the back of his head, "Stop spouting nonsense. You've also looked at the code; if there's no problem, hurry up and get it into the machine tool's system."
"Got it!"
Shen Ming rubbed the back of his head and nodded immediately with high spirits.
Although he still didn't understand the most core part of the mathematical compensation logic up to now, this completely did not affect his work; he only needed to integrate this part of the algorithm package. This step had no particular difficulty, and usually when working in the application layer, there was completely no need to care about the contents of this part.
"Give me an hour, and I'll get it done quickly."
Shen Ming pulled out the keyboard, and the tapping sounds immediately spread across the workshop.
...
An hour passed, accompanied by a crisp system restart prompt ringing in the underground workshop, and the machine tool's large control screen lit up once again.
"Done!"
Shen Ming let out a long stretch, casually hit the final Enter key, and patted the machine tool's alloy casing with a face full of satisfaction:
"The system foundation has been completely integrated, various physical interfaces are docked perfectly, and there are no conflicts."
Speaking of which, Shen Ming looked at the brand-new system backend on the screen, couldn't help smacking his lips, and sighed: "Brother Lin, seriously, if those R&D engineers at Kede CNC knew that you randomly typed on the keyboard for half a month and optimized their proud N60 code to this extent, they'd probably buy tickets overnight and rush over to ask us for the source code!"
"Fortunately, this is our specially approved military-grade machine tool, completely physically disconnected from the internet. Kede definitely didn't leave any remote backdoors, so they can forget about ever knowing what miraculous overhaul this machine has experienced in this lifetime."
Shen Ming rolled his eyes, leaned over half-jokingly, and rubbed his hands together. "Hey, Brother Lin, how about once we're done with this project, we call the head of that previous engineering team and give them a slight heads-up on some of the optimized data, and charge them a few million for technical guidance? This is definitely a win-win business! Besides, it counts as upgrading our domestic machine tool software, making us both famous and profitable!"
Lin Ye didn't know whether to laugh or cry at his money-grubbing look, and interrupted him irritably, "We don't even have a shadow of a shape yet, stop worrying about how to sell it for money first, hurry up and turn on the machine to see if this machine with the new brain is actually any good."
"We haven't even seen a finished result yet. If they come over and see that this optimized system performs worse than before once it's on the machine, or if it freezes midway and throws an error, then we'll lose face to the ends of the earth."
"Are you kidding me?!"
Shen Ming instantly became unhappy, patted his chest proudly, and said, "With the underlying algorithms personally optimized by my Brother Lin, could it possibly throw an error? This is disrespect towards God Lin!"
You are just Lin Ye, what do you know about God Lin!
Of course, although he was running his mouth, Shen Ming's hands didn't hesitate at all.
He quickly put away his joking attitude, turned around from the nearby material rack, skillfully picked up a standard aluminum alloy blank, and firmly fixed it on the five-axis workbench of the machine tool using a hydraulic chuck.
"Brother Lin, then I'll directly load the set of Möbius strip code written during the first day of test running."
As Shen Ming imported the program on the panel, he explained, "Same material, same toolpath, this way we can see just how big the improvement is."
"Start." Lin Ye nodded.
He took half a step back, his gaze looking into the explosion-proof cabin.
"Start!"
Shen Ming pressed the green run button.
"Hum——!"
Accompanying the power-on of the servo motor, the spindle instantly burst into extremely high rotational speed, and the cutting fluid gushed out like a waterfall.
And at the very moment the five-axis cutter head touched the aluminum alloy blank, Shen Ming's eyes widened abruptly.
"Holy crap, this sound isn't right!"
As a veteran who had frequented workshops for years, Shen Ming keenly perceived the abnormality of the machine tool.
Originally, when the machine tool was performing multi-axis linkage cutting, the tool and metal would inevitably produce a hint of sharp, high-frequency frictional sound.
But now, it was gone!
That harsh cutting sound became like a sharp blade slicing through butter, leaving only a deep, smooth, and slight humming sound.
What made Shen Ming feel even more scalp-tingling was the execution speed of this machine!
The cutting tool fluttered up and down in the narrow machining cabin. Because Lin Ye had completely optimized the data buffer pool and eliminated the communication delay between the system and the motor, the tool head's positioning lacked even a trace of lagging sensation, moving so fast it almost left behind a residual image.
Only two and a half minutes.
"Hiss——"
The spindle stopped rotating, the air gun automatically blew off the residual cutting fluid on the surface, and the heavy explosion-proof cabin door slowly opened.
Shen Ming swallowed a mouthful of saliva, put on his gloves, and carefully took out the newly cut Möbius strip.
Afterwards, he walked quickly to the tool rack next to him, picked up the hollowed-out Möbius strip cut with the original system when he first came into contact with this machine tool on the first day, and examined the two side by side under the shadowless lamp.
To be honest, as the country's top military-grade numerical control system, this T-1 model's original software-level capability was already extremely formidable. The surfaces of the finished products cut both times presented an extremely high mirror glossiness.
If an outsider were standing here, they wouldn't be able to tell the difference between these two parts at all.
But Shen Ming was a veteran who had touched goodness knows how many machine tools.
He used his fingernail to scrape extremely slowly along those most complex twisted corners inside the Möbius strip, and then suddenly drew in a sharp breath of cold air.
"Brother Lin, this improvement... is simply too terrifying!"
Shen Ming stared fixedly at the freshly baked part in his hand, his voice filled with emotion: "Although our country's top numerical control systems have reached 95% of the international top standard in basic functions, compared with systems like Siemens and Fanuc, the biggest gap has always been in the stability of multi-axis high-speed dynamic interpolation."
"In the past, when encountering such complex twisted surfaces, the machine tool had to reduce speed through algorithms at the corners in order to maintain precision. With this speed reduction, scraping a fingernail across would produce a slight stuttering sensation, which could be felt after touching it a few times. But now..."
Shen Ming excitedly raised the part in his hand: "Just now, this machine cut through the whole process at full speed, cutting the time in half, but the curvature transition at the corners feels exceptionally smooth, completely devoid of any seams left by deceleration!"
"Brother Lin, just based on your optimization of the underlying communication delay, the dynamic precision of this system has definitely faintly touched the international top standard, and who knows, it might even have surpassed it?"
Shen Ming turned his head, looking at Lin Ye with glowing eyes: "Just now I said I wanted a few million in guidance fees from Kede CNC, I'm taking back those words now. With just this set of algorithms, if we take it to sell to those domestic machine tool factories whose necks are being choked by foreign countries, let alone a few million, it definitely won't go for less than tens of millions or even hundreds of millions!"
Hearing Shen Ming's excited, spit-flying quotation, Lin Ye only smiled noncommittally.
"Alright, stop dwelling on selling it for money."
Lin Ye took the aluminum alloy part, glanced at it casually, and put it back on the table.
For him, what he truly cared about now, and was most concerned with, was still that core part of the performance.
"Tough materials like aluminum alloy can only show the improvement in conventional interpolation speed."
Lin Ye looked at the machine tool, his tone returning to seriousness: "But that vibration reverse compensation algorithm we wrote specifically for nonlinear topological surfaces cannot be seen on aluminum blocks at all."
Shen Ming also calmed down and nodded: "Indeed, that part of the performance is against microscopic mechanical stress, which is extremely subtle. If we want to know whether it perfectly canceled out the tool's vibration, we have to cut a piece of brittle piezoelectric ceramics, and then run over to the material processing and testing center at the School of Engineering, to borrow their electron microscope and light diffractometer to take a picture."
Mentioning having to take the cut samples, run all the way to the materials center to line up and borrow equipment, and wait for testing reports, both of them furrowed their brows in unison.
"Too troublesome."
Lin Ye shook his head and decisively rejected the proposal.
Shen Ming chuckled, obviously thinking the same thing as Lin Ye.
"Yeah, why must we go take pictures with some microscope? That's like taking off your pants to fart."
For them, there was now a method that could best reflect whether this core performance part met expectations.
That was to directly use this machine tool with the new brain to cut another piece of solid-state piezoelectric topological resonant configuration ceramics, and then pull it onto the test bench on the spot, and connect high voltage electricity for testing.
If it still exploded into powder, it would mean that the microscopic compensation of the algorithm was not in place.
If it could stubbornly withstand several kilowatts of power without shattering, and perfectly boost the voltage to 50,000 volts or even higher, it would mean that the system they optimized this time completely achieved their ultimate expectations!
Truth lies only on the edge of explosion.
"Since we've confirmed the system didn't throw a bug, let's not waste time." Lin Ye clapped his hands and made a direct decision, "Let's start, make a few new samples first, and then go to the laboratory for testing!"
"Understood!"
The atmosphere in the laboratory instantly changed from the previous relaxation to incomparably solemn once again.
Shen Ming took a deep breath, turned around and walked to the side of the constant-temperature shockproof cabinet, holding out a piece of high-purity barium titanate piezoelectric ceramic blank.
He steadily sent the ceramic blank into the machining cabin, locked it tightly with a hydraulic chuck, and then closed the heavy explosion-proof cabin door once more.
Along with the indicator lights on the control panel lighting up, Shen Ming imported that set of non-linear topology machining code into the system.
"Brother Lin, ready."
Shen Ming's fingers hovered above the green start button, his eyes revealing incomparable focus.
"Get to work." Lin Ye gave the order in a deep voice.
"Click."
Shen Ming heavily pressed the start button.
Accompanied by the sound of cutting, they once again charged towards that microscopic forbidden zone of current manufacturing technology.
