TAGGED: chemical-reaction, fluent, materials, scheme, scheme-procedure
- 
		
			- 
January 25, 2024 at 7:00 pmMike H. SubscriberHello, Background: I have a large chemical reaction mechanism running in 2D Fluent. It consists of 24 reactions and 17 species. I am looking to do sensitivity studies, where I turn off a reaction, then re-run to get its contribution to the results. I previously tried deactiviting specific reactions in the mechanism be de-selecting them. However, for reasons unknown, that did not actually deactivate them. A sure way to deactivate is to set the pre-exponential factor to a small fraction of its original value, say, two orders of magniutude lower. This effectively turns off the reaction. Now to the issue. Doing this with the GUI is painful, so I am doing it with scheme commands. Problem: The (rpsetvar 'materials mymaterials) does not actually update the materials database or the GUI. Possible Solution: By searching through this document [https://www.cfdyna.com/CFDHT/SchemeLanguage.pdf], I found a command called set-all-materials!. This one actually works and updates the GUI values. Question: Does anyone know why rpsetvar doesn't work? Also, does an easier way to update kinetic parameters exist (non-GUI)? Thanks. BTW, here is my workflow: (define mat (%rpgetvar 'materials)) 
 (define mymaterials (replace mat 1.5e+14 1.5e+12))
 (set-all-materials! mymaterials)where "replace" is a scheme procedure I found online: (define (replace lst find repl) 
 Â Â (if (pair? lst)
 Â Â Â Â (cons
 Â Â Â Â Â Â (replace (car lst) find repl)
 Â Â Â Â Â Â (replace (cdr lst) find repl))
 Â Â Â Â (if (equal? find lst)
 Â Â Â Â Â Â repl
 Â Â Â Â Â Â lst)))
- 
February 2, 2024 at 1:49 pmSVV Ansys EmployeeHi, To change the Arrhenius coefficients without GUI, one way is to transcribe reactions into a Chemkin mechanism and then use a recorded journal to read another version of the mechanism. Â Please note, as per part of forum policy, we cannot debug/write scripts. Â 
- 
February 2, 2024 at 3:04 pmMike H. Subscriberv.v., Thank you for the suggestion, and I appreciate that scripts can break Fluent if not careful! I am doing some other work in Chemkin, so I will look into that. Can I import multiple Chemkin mechanisms and then switch between them in cell zones? Or, do I overwrite the mechanism each time I import. Thank you. 
 
- 
- The topic ‘rpsetvar not working for materials’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- I am doing a corona simulation. But particles are not spreading.
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
- 
                        
                        4167
- 
                        
                        1487
- 
                        
                        1358
- 
                        
                        1189
- 
                        
                        1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
 You are navigating away from the AIS Discovery experience
You are navigating away from the AIS Discovery experience 
               
          