Negative-concentrations(comsol中负浓度的处理方法)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

ResultsWithSmallUnphysicalValuesWHEREANDWHYDOUNPHYSICALVALUESAPPEAR?Insomemodelssmallunphysicalvaluescanoccurduetonumericalartifacts.Examplesinclude:•Negativeconcentrationsinmasstransfer.•Atemperaturethatisslightlyhigherthantheinitialconditionintimedependentheattransferstudies.•Smallreactionforcesthatappearinunloadeddirectionsinstructuralmechanicsmodels.•Smallnegativegapsinacontactanalysis.•Smallnegativeeffectiveplasticstrainvalues.•Stressesabovetheyieldlimitforanideallyplasticmaterialinsolidmechanics.Somereasonsforwhytheseunphysicalvaluesoccur:•Numericalnoiseisacommoncause.Whenthevaluesofthedependentvariablesapproachzero,thenumericalnoisecanbecomerelativelysignificantandcausesomeoftheresultstobeslightlynegativeevenifthatisnotphysicallypossible.•Interpolationandextrapolationofvaluescancausesomevaluestobecomeunphysical.Forexample,resultsforanelastoplasticmaterialarecorrect(withinsometolerance)attheintegrationpoints(Gausspoints)insidethefiniteelements,butvaluesmightbecomeunphysicalwhenextrapolatingthedatatotheelementboundaries.•Discontinuitiesinthemodelisanothersourceof,forexample,smallnegativeconcentrationsduetoadiscontinuousinitialvalue.Withaninitialvaluethatiszeroalongaboundaryforaconvectivetransportmodels,forexample,thephysicalinterpretationisaninitiallysharp,graduallydiffusingfrontmovingawayfromtheboundary.However,forthedefaultshapefunction(second-orderLagrangeelements),onlycontinuousfunctionsareadmissibleassolutionsforthefiniteelementmodel.Theprogramthenmodifiesthediscontinuousinitialvaluebeforethetimesteppingcanbegin.Thisoftenresultsinasmalldipinthesolutionatthestarttime.Intheexamplemodelthatthefollowingfigureshows,theconcentrationislocallyslightlynegativeatt=0:•Lackofmeshresolutionisanothercauseofunphysicalvaluessuchasnegativeconcentrations.Theresultingconvergenceproblemsareoftentheunderlyingissuewhennegativeconcentrationsareobservedinhighconvectionregimes(highPecletnumber)andinthosewithlargereactiontermsorfastkinetics(highDamkohlernumber).•Incorrectphysicsinthemodelcanalsocausethesetypesofproblems.Formasstransfer,forexample,theuseofaconstantsinkinareactiontermisanapproximationthatonlyworksforlargeconcentrations.Whentheconcentrationreacheszero,thereactiontermcontinuestoconsumethespecies,finallyresultinginanegativeconcentration.AVOIDINGUNPHYSICALVALUESThissectioncontainssomewaystoavoidcomputingordisplayingunphysicalvalues:•Insomecasesitispossibletoaddabaselinetothedependentvariablesothatthenumericalnoisedoesnotaffectthesolutioninthesamewayaswhenthevaluesofthedependentvariableapproachzero.Thisscalingisnotpossiblewith,forexample,areactiontermthatdependsontheconcentrationbecausethenthescaleandorigindomatter.•Avoiddiscontinuitiesinthemodelbyusing,forexample,theavailablesmoothedstepfunctionsinstead.•Formulatelogarithmicvariablesasawayofeliminatingmeshresolutionproblemsandnegativedipsbyusingthelogarithmoftheoriginaldependentvariable(theconcentration,forexample)asthedependentvariable.Thereasonforthisisthatalinearlyvaryingmeshcansometimesnotcapturetheexponentialbehaviorofthechangesinthedependentvariable.Inaddition,modelingthelogarithmofthedependentvariableensuresthattherealconcentration,forexample,cannotbecomenegativeduringthesolutionprocess.•Avoiddisplayingsmallunphysicalvaluesduetonumericalnoisebyclippingthevaluesfortheplot.Youcandothisbyplotting,forexample,c*(c0)insteadofc,whichevaluatesto0everywherewherecissmallerthan0.Youcanalsoadjusttherangeoftheplotdataandcolorstoonlyshowvaluesthatarenonzero.Inthecasethatthedatarangechanges,partsoftheplotswherethevaluesareoutsidetherangebecomeempty.•Itcanalsobeusefultocheckhowthemeshaffectsthesolutionbyrefiningthemeshandcheckiftheproblemwithunphysicalvaluesgetsbetterorworse.Ifitgetsbetter,thencontinuetorefinethemesh.Ifitgetsworse,youprobablyneedtocheckthephysicsofthemodel.

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功