[petsc-users] SNES realted

Dharmendar Reddy dharmareddy84 at gmail.com
Fri Jan 17 01:31:32 CST 2014


Thanks. Tried the SNESVISetVariableBounds on a non linear Poisson
solver. Works well.

I was wondering if it makes senes to create a method for setting
bounds for fields in the default petsc section used for dof setup.  I
mean, the user specifies field wise bounds as scalar numbers.

Thanks
Reddy

On Thu, Jan 16, 2014 at 6:47 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
> On Jan 16, 2014, at 6:28 PM, Dharmendar Reddy <dharmareddy84 at gmail.com> wrote:
>
>> Hello,
>>        I am solving a set of equations with SNES
>> F1 (x1,x2,x3) = 0
>> F2 (x1,x2,x3) = 0
>> F3 (x1,x2,x3) = 0
>>
>> x1 and x2 are always > 0, how do i enforce that during the line search ?
>
>   You don’t
>
>    This is an example of a variational inequality.   You use the SNESType of vinewtonrsls  to solve it and call SNESVISetVariableBounds() to set the bounds on the variables.
>
>     Good luck,
>
>     Barry
>
>
>
>>
>> The system of equations is shown on page 1 of pdf here
>> http://dunham.ee.washington.edu/ee531/notes/SemiRev.pdf
>>
>> F1 = equation 1
>> F2 = equation 2
>> F3 = equation 5
>>
>> x1 = n, X2=p and X3 = psi
>>
>> Thanks
>> Reddy
>



-- 
-----------------------------------------------------
Dharmendar Reddy Palle
Graduate Student
Microelectronics Research center,
University of Texas at Austin,
10100 Burnet Road, Bldg. 160
MER 2.608F, TX 78758-4445
e-mail: dharmareddy84 at gmail.com
Phone: +1-512-350-9082
United States of America.
Homepage: https://webspace.utexas.edu/~dpr342


More information about the petsc-users mailing list